Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ZevEisenberg/ScrollSnake
What if scroll bars on the iPhone X worked like the game “Snake”?
https://github.com/ZevEisenberg/ScrollSnake
Last synced: 3 months ago
JSON representation
What if scroll bars on the iPhone X worked like the game “Snake”?
- Host: GitHub
- URL: https://github.com/ZevEisenberg/ScrollSnake
- Owner: ZevEisenberg
- License: mit
- Created: 2017-09-13T16:45:21.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2021-09-16T00:54:48.000Z (about 3 years ago)
- Last Synced: 2024-04-04T18:36:57.360Z (8 months ago)
- Language: Swift
- Size: 1.06 MB
- Stars: 623
- Watchers: 8
- Forks: 30
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScrollSnake
What if scroll bars on the iPhone X worked like the game “Snake”?This very silly thing is a response to [this Tweet](https://twitter.com/vojtastavik/status/907911237983449088/video/1) by [Vojta Stavik](https://twitter.com/vojtastavik).
![Screen recording of the iPhone X simulator with the sensor bar ("notch") on the right. As a table view scrolls, the scroll bar bends and contorts itself around the sensor bar. It kind of looks like a game of Snake.](ScrollSnake.gif)
Note: this project is hardcoded to the screen dimensions and sensor housing size of iPhone X/Xs/11 Pro. To support any other devices, the specific sizes in `viewDidLayoutSubviews` would need to be adjusted.