Welcome to Stream’s Try Swift Workshop! Today, we will be adding Stream’s real-time chat to a SwiftUI application and then we will have some fun modifying the resulting app we created.
By the end of this code lab, you will be able to do the following:
Before starting this workshop, please ensure you have the following:
To start with the iOS SwiftUI SDK, open Xcode and create a new project.
We are going to use the Swift Package Manager to fetch the SDK. If you'd like, the SDK can also be installed with CocoaPods. You can find more information on using CocoaPods on the SDK doc pages.
Add the NSPhotoLibraryUsageDescription key in your Info.plist with a description of use. Add the NSPhotoLibraryAddUsageDescription key in your Info.plist with a description of use. Add the NSCameraUsageDescription key in your Info.plist with a description of use.
You now have an empty project with the SwiftUI SDK as a dependency. Let's get started by displaying some content.