Swift Concurrency Made Easy : Start Using Swift Concurrency In Your Apps
**Note**
Starting with Swift 5.7 when working with the @MainActor you may get the following warning Expression requiring global actor 'MainActor' cannot appear in default-value expression of property in order to resolve you can either use the @MainActor property wrapper above specific functions or create an instance of your stateobject in the init as seen here https://stackoverflow.com/questions/71396296/how-do-i-fix-expression-requiring-global-actor-mainactor-cannot-appear-in-def it’s just one of those changes by Apple 🤷🏾♂️
i.e to create an instance of it in the initialiser do the following below
@StateObject var vm: MyViewModel
init() {
self._vm = StateObject(wrappedValue: MyViewModel(service: MyService()))
}
Learn Swift Concurrency Now - It's FREE! (For iOS Developers)
In this video, we’re going to explore Swift Concurrency in this free swift concurrency course and some of the new capabilities we get in Swift when working with iOS Concurrency such as the new Swift Concurrency Async Await in SwiftUI. In this Swift Concurrency tutorial, we’ll be looking at practical examples in SwiftUI & UIKit.
We’ll discuss a range of topics within the Swift Concurrency Framework such as Swift Async Await Example, SwiftUI Async Await Example, Actors, Continuations, Async Task, Group Tasks and many more topics within the Swift Concurrency Framework, alongside real-life examples you may come across in your project.
So let’s get straight into this SwiftUI tutorial & UIKit tutorial and learn swift concurrency online for free.
Timestamps
00:00 Introduction
00:45 What is Swift Concurrency?
03:35 Async/Swift in Swift
19:45 Structured Concurrency
27:40 What are Tasks in Swift Concurrency?
28:52 Breaking down AsyncLet
33:58 Breaking down the Task Lifecycle
37:14 What is Task Cancellation?
45:59 Exploring Group Tasks
55:30 Unstructured Tasks
01:05:35 Working with Detached Tasks
01:13:11 Exploring Continuations
01:23:03 Breaking down Actors
01:31:38 Preventing Actor Reentrancy
01:42:35 Exploring Actor Isolation
01:48:05 What is Sendable?
01:49:28 What is MainActor?
01:51:21 Shoutouts
Master Swift Concurrency with this Free Course for iOS Developers | Free Swift Concurrency Course
Getting Started with Swift Concurrency (Learn Swift Concurrency online for FREE)
Getting Started with Swift Concurrency (Free Swift Concurrency Course, Swift Concurrency For Beginners)
Getting Started with Swift Concurrency Learn Swift Concurrency online for FREE, Async Await, Actors
Resources
Github Repo
https://github.com/tunds/YouTubeResources
Other Resources
https://www.donnywals.com/category/swift-concurrency/
https://www.andyibanez.com/posts/understanding-async-await-in-swift/
https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html
https://www.hackingwithswift.com/quick-start/concurrency/how-to-cancel-a-task
https://swiftsenpai.com/swift/actor-reentrancy-problem/
SwiftUI MVVM Async/Await Networking Example(SwiftUI 3.0, Xcode 13, Error Handling, SwiftUI Tutorial)
https://youtu.be/53lbqYYAPLw
My SwiftUI Async/Await MVVM Project Structure & Approach (SwiftUI 3.0, async/await Swift, Xcode 13)
https://youtu.be/wRmaiEPk03Y
SwiftUI Data Flow (SwiftUI Tutorial, SwiftUI Beginner, Swift UI Data Flow)
https://youtube.com/playlist?list=PLvUWi5tdh92zfsV9xRgx7vTlASvmrToqQ
Mastering Stacks in SwiftUI (VStack, HStack, LazyStacks, SwiftUI Tutorial)
https://youtu.be/P6eFtYaX4ow
Firebase SwiftUI Login, Registration, Password Reset & Session Management with Combine
https://youtu.be/5gIuYHn9nOc
Setup SwiftUI App with Firebase SPM (Swift Package Manager, SwiftUI Tutorial, Firebase Crashlytics)
https://youtu.be/l-iN0kY_bmg
Getting Started with Combine (Practical Combine Framework Examples in UIKit & SwiftUI)
https://youtu.be/X2m0f2NoB10
SwiftUI Form Validation using Combine (SwiftUI Tutorial, Regular Expressions, Combine Framework)
https://youtu.be/v-6qU-DqaZo
Build a news app in SwiftUI tutorial series
https://youtube.com/playlist?list=PLvUWi5tdh92zgFZ2UHvhhKrLyRyHXz8Jw
Build Onboarding Screens in SwiftUI (TabView, PageTabViewStyle, SwiftUI Tutorial, @AppStorage)
https://youtu.be/HXYqU5ClIk4
SwiftUI Redacted Tutorial - Loading Skeleton View - (SwiftUI Tutorial, Xcode 12, SwiftUI 2.0)
https://youtu.be/cfwEt__pnvA
Build Clubhouse in SwiftUI 2.0 and Dark Mode (SwiftUI Tutorial, SwiftUI 2.0, Clubhouse App Clone)
https://youtu.be/FVUPe5z1YG8
Dark Mode in SwiftUI using @Binding & @AppStorage (SwiftUI Tutorial, @Binding, @AppStorage)
https://youtu.be/j7a4jvHz4MM
#swiftconcurrency #swiftuitutorial #gettingstartedwithswiftconcurrency #uikit #uikittutorial #swiftconcurrencyswiftuitutorial #swiftconcurrencypracticalexamples
Видео Swift Concurrency Made Easy : Start Using Swift Concurrency In Your Apps канала tundsdev
Starting with Swift 5.7 when working with the @MainActor you may get the following warning Expression requiring global actor 'MainActor' cannot appear in default-value expression of property in order to resolve you can either use the @MainActor property wrapper above specific functions or create an instance of your stateobject in the init as seen here https://stackoverflow.com/questions/71396296/how-do-i-fix-expression-requiring-global-actor-mainactor-cannot-appear-in-def it’s just one of those changes by Apple 🤷🏾♂️
i.e to create an instance of it in the initialiser do the following below
@StateObject var vm: MyViewModel
init() {
self._vm = StateObject(wrappedValue: MyViewModel(service: MyService()))
}
Learn Swift Concurrency Now - It's FREE! (For iOS Developers)
In this video, we’re going to explore Swift Concurrency in this free swift concurrency course and some of the new capabilities we get in Swift when working with iOS Concurrency such as the new Swift Concurrency Async Await in SwiftUI. In this Swift Concurrency tutorial, we’ll be looking at practical examples in SwiftUI & UIKit.
We’ll discuss a range of topics within the Swift Concurrency Framework such as Swift Async Await Example, SwiftUI Async Await Example, Actors, Continuations, Async Task, Group Tasks and many more topics within the Swift Concurrency Framework, alongside real-life examples you may come across in your project.
So let’s get straight into this SwiftUI tutorial & UIKit tutorial and learn swift concurrency online for free.
Timestamps
00:00 Introduction
00:45 What is Swift Concurrency?
03:35 Async/Swift in Swift
19:45 Structured Concurrency
27:40 What are Tasks in Swift Concurrency?
28:52 Breaking down AsyncLet
33:58 Breaking down the Task Lifecycle
37:14 What is Task Cancellation?
45:59 Exploring Group Tasks
55:30 Unstructured Tasks
01:05:35 Working with Detached Tasks
01:13:11 Exploring Continuations
01:23:03 Breaking down Actors
01:31:38 Preventing Actor Reentrancy
01:42:35 Exploring Actor Isolation
01:48:05 What is Sendable?
01:49:28 What is MainActor?
01:51:21 Shoutouts
Master Swift Concurrency with this Free Course for iOS Developers | Free Swift Concurrency Course
Getting Started with Swift Concurrency (Learn Swift Concurrency online for FREE)
Getting Started with Swift Concurrency (Free Swift Concurrency Course, Swift Concurrency For Beginners)
Getting Started with Swift Concurrency Learn Swift Concurrency online for FREE, Async Await, Actors
Resources
Github Repo
https://github.com/tunds/YouTubeResources
Other Resources
https://www.donnywals.com/category/swift-concurrency/
https://www.andyibanez.com/posts/understanding-async-await-in-swift/
https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html
https://www.hackingwithswift.com/quick-start/concurrency/how-to-cancel-a-task
https://swiftsenpai.com/swift/actor-reentrancy-problem/
SwiftUI MVVM Async/Await Networking Example(SwiftUI 3.0, Xcode 13, Error Handling, SwiftUI Tutorial)
https://youtu.be/53lbqYYAPLw
My SwiftUI Async/Await MVVM Project Structure & Approach (SwiftUI 3.0, async/await Swift, Xcode 13)
https://youtu.be/wRmaiEPk03Y
SwiftUI Data Flow (SwiftUI Tutorial, SwiftUI Beginner, Swift UI Data Flow)
https://youtube.com/playlist?list=PLvUWi5tdh92zfsV9xRgx7vTlASvmrToqQ
Mastering Stacks in SwiftUI (VStack, HStack, LazyStacks, SwiftUI Tutorial)
https://youtu.be/P6eFtYaX4ow
Firebase SwiftUI Login, Registration, Password Reset & Session Management with Combine
https://youtu.be/5gIuYHn9nOc
Setup SwiftUI App with Firebase SPM (Swift Package Manager, SwiftUI Tutorial, Firebase Crashlytics)
https://youtu.be/l-iN0kY_bmg
Getting Started with Combine (Practical Combine Framework Examples in UIKit & SwiftUI)
https://youtu.be/X2m0f2NoB10
SwiftUI Form Validation using Combine (SwiftUI Tutorial, Regular Expressions, Combine Framework)
https://youtu.be/v-6qU-DqaZo
Build a news app in SwiftUI tutorial series
https://youtube.com/playlist?list=PLvUWi5tdh92zgFZ2UHvhhKrLyRyHXz8Jw
Build Onboarding Screens in SwiftUI (TabView, PageTabViewStyle, SwiftUI Tutorial, @AppStorage)
https://youtu.be/HXYqU5ClIk4
SwiftUI Redacted Tutorial - Loading Skeleton View - (SwiftUI Tutorial, Xcode 12, SwiftUI 2.0)
https://youtu.be/cfwEt__pnvA
Build Clubhouse in SwiftUI 2.0 and Dark Mode (SwiftUI Tutorial, SwiftUI 2.0, Clubhouse App Clone)
https://youtu.be/FVUPe5z1YG8
Dark Mode in SwiftUI using @Binding & @AppStorage (SwiftUI Tutorial, @Binding, @AppStorage)
https://youtu.be/j7a4jvHz4MM
#swiftconcurrency #swiftuitutorial #gettingstartedwithswiftconcurrency #uikit #uikittutorial #swiftconcurrencyswiftuitutorial #swiftconcurrencypracticalexamples
Видео Swift Concurrency Made Easy : Start Using Swift Concurrency In Your Apps канала tundsdev
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Breaking Down Swift Data Migrations | SwiftData Tutorial | Part 11](https://i.ytimg.com/vi/PDKaZpWuH1I/default.jpg)
![How To Use SwiftData with Preview | SwiftData Tutorial | Part 10](https://i.ytimg.com/vi/jCC3yuc5MUI/default.jpg)
![How To Preload Relationships Into SwiftData ModelContainer ⚡️ | SwiftData Tutorial | Part 9](https://i.ytimg.com/vi/DnZKwlOkRrE/default.jpg)
![See How To Store An Image In SwiftData 📸 | SwiftData Tutorial | Part 8](https://i.ytimg.com/vi/y3LofRLPUM8/default.jpg)
![Discover How To Save Your API Response Into SwiftData ☁️ | SwiftData Tutorial | Part 7](https://i.ytimg.com/vi/4uf6kVkyJfs/default.jpg)
![How To Use JSON To Preload SwiftData ModelContainer 👀 | SwiftData Tutorial | Part 6](https://i.ytimg.com/vi/SCU5tOgztVo/default.jpg)
![Learn How To Build iOS Apps Using SwiftUI ⚡️](https://i.ytimg.com/vi/KMRINnPv34A/default.jpg)
![How To Preload Data Into SwiftData ModelContainer ⚡️ | SwiftData Tutorial | Part 5](https://i.ytimg.com/vi/2Y9dYbFNUaY/default.jpg)
![How To Sort Data In SwiftData 📂 | Easily Add Sorting in SwiftData | Part 4](https://i.ytimg.com/vi/C2OEZ-R-3Zs/default.jpg)
![Easily Add Filtering In SwiftData Using Searchable 🕵🏾♂️ | Filter in SwiftData | Part 3](https://i.ytimg.com/vi/-Tx5BLhcdEk/default.jpg)
![Swift Data Relationships 🚀 | SwiftData Tutorial | Part 2](https://i.ytimg.com/vi/_QMalUGTM4E/default.jpg)
![The Best Way To Manage & Organise Testers In TestFlight](https://i.ytimg.com/vi/23vRwcuEQvg/default.jpg)
![TestFlight Made Simple: How To Upload & Manage An App On TestFlight! 🚀](https://i.ytimg.com/vi/3aautA1kclE/default.jpg)
![Simple Ideas To Find Testers For Your TestFlight App 🧠](https://i.ytimg.com/vi/SqLpn8MuMGo/default.jpg)
![Swift Data Is Way Easier Than CoreData 😇 | Build A Todo app in SwiftData Beginner Tutorial](https://i.ytimg.com/vi/kLNNNXD8X2U/default.jpg)
![Look At How Easy Navigation In SwiftUI Is Now!!! | A Complete SwiftUI Navigation Guide](https://i.ytimg.com/vi/AinyMZRrJ4Y/default.jpg)
![NavigationSplitView - Migrate Your iOS App To Multiple Platforms: A Multiplatform Shopping App ⚡️](https://i.ytimg.com/vi/v7rRbiDprIg/default.jpg)
![NavigationStack - Add Firebase Push Notifications & iOS Deep Linking in SwiftUI🔥](https://i.ytimg.com/vi/msWb_Iyscro/default.jpg)
![NavigationStack - iOS Deep Linking Example In iOS Shopping App 🔗](https://i.ytimg.com/vi/KevGhZQRcG8/default.jpg)
![Easily Add Programmatic Navigation To Your App!!! | Programmatic Navigation in SwiftUI](https://i.ytimg.com/vi/GpjTeGPgIs8/default.jpg)
![How To Use NavigationStack In SwiftUI | A Beginners Guide To Navigation In SwiftUI](https://i.ytimg.com/vi/cik3doGHZiI/default.jpg)