Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iOS 15 Swift Playgrounds 4 version 馃啎 #2

Merged
merged 2 commits into from Mar 22, 2022

Conversation

atrinh0
Copy link
Contributor

@atrinh0 atrinh0 commented Jan 9, 2022

This version uses new APIs available on iOS 15, as well as other new additions since the older projects.

API Description
async/await New way to handle concurrency
refreshable Pull to refresh
task Replaces onAppear and supports concurrency/cancellable tasks upon the views lifecycle
@MainActor Calls methods on the main thread, replaces the DispatchQueue.main.async
@main Replaces UIKit completely, SwiftUI can now be used for the AppDelegate

This also fixes an issue where running on an iPad shows in split master/detail view via .navigationViewStyle(.stack).

Development experience on Swift Playgrounds 4

SwiftPlaygrounds4

Development on Xcode 13.2.1

Xcode13 2

Screenshot

Screenshot

@dkhamsing
Copy link
Owner

Thank you!!!

@dkhamsing dkhamsing merged commit 343606f into dkhamsing:main Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants