Welcome to the Swift Heroes Stream Workshop! You will be adding Stream’s real-time chat to a SwiftUI application and then have some fun modifying the resulting app.
Once you completed this code lab, you will be able to do the following:
Make sure to go through this codelab all the way to the end. There is a some swag potential if you complete this Codelab before the 12th of April 2022.
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.
https://github.com/getstream/stream-chat-swiftui
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.