![](/style/images/good.png)
![](/style/images/bad.png)
GitHub - unixzii/SwiftUI-2048: A 2048 game writing with SwiftUI.
source link: https://github.com/unixzii/SwiftUI-2048
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
2048 Game (SwiftUI app)
This is a simple game to demonstrate the new SwiftUI framework.
Note that the game algorithm may have issues, and this is still WIP.
Notes about "UIKit for Mac"
This demo has adopted "UIKit for Mac" and uses a dynamic-loaded bundle to enable the full macOS abilities (like the accessing to AppKit, which is used in the demo to handle keyboard events). Specially, this is done by just using Swift. To learn more about it, take a look at the source code of AppKitSupports
, there is a lot of detailed comments.
License
MIT
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK