Build a Quiz App With SwiftUI - Firebase - Xcode 14 - SwiftUI Tutorials

preview_player
Показать описание
Hello Guys 🖐🖐🖐
In this Video I'm going to teach how to Build a Quiz App Which will Fully Integrated with Firebase Using SwiftUI 4.0 | SwiftUI Complex UI | SwiftUI Quiz App | SwiftUI Firebase Quiz App | SwiftUI Firebase Firestore | SwiftUI Custom Transitions | Building Quiz App | SwiftUI @ViewBuilder | Swift | SwiftUI Xcode 14 | SwiftUI for iOS 16 | Xcode 14 SwiftUI.
#apple #swiftui #ios #xcode #animation #ui #design #animation

► Support Us

► My MacBook Specs
M1 MacBook Pro(16GB)
Xcode Version: 14.2
macOS Version: 13.1 Ventura

► Social Platforms

► Timestamps
0:00 Intro
0:40 Project SetUp
3:32 Building Home View
11:33 Building Questions View

Thanks for watching
Make sure to like and Subscribe For More Content !!!
Рекомендации по теме
Комментарии
Автор

Very nice tutorial. Thank you!

I have one question. When returning from the QuestionsView, you manually increased peopleAttended += 1 (27:05) locally instead of re-fetching the updated data. How could I do that? run the asynchronous function fetchData in the onFinish of the QuestionView component and update the view?

Thank you in advance!

buildwithrudy
Автор

i got "The data couldn’t be read because it isn’t in the correct format." when running the code (6:05). Instead of showing the title, i get loading image.

honamchow
Автор

Question: I want to save the quiz results so user can go back and see them afterwards. When I save / load to userdefaults because of the struct tappedAnswer: String = "" it always loses the users answer. How can I save and load the data keeping the users tappedAnswer?

sraldous
Автор

Hi, I tried the code and setup . I am getting this error

2023-05-11 09:59:01.464726-0500 Quiz_App[94732:4426386] 9.6.0 - App Delegate does not conform to UIApplicationDelegate protocol.
The data couldn’t be read because it isn’t in the correct format.
Could you help me with this. 8:56

SaiNithisha
Автор

Thanks for the awesome lesson. In my environment the .data(as: Decodable) option in the Firestore.firestore() object does not exist. I tried using the latest Firebase Version as well as Version 9.6.0 as used in your video. In either version, there is only .data() and .data(with: ServerTimeStampBehaviour). Is .data(as: Decodable) a custom extension?

For everyone who has the same issue as me and wants a fix:
1. Get the data with .data()
let infoData =
2. Manually parse the content of infoData onto the Info Model:
let info = Info(title: infoData?["title"] as? String ?? "", peopleAttended: infoData?["peopleAttended"] as? Int ?? 0, rules: infoData?["rules"] as? [String] ?? [])

Do the exact same thing with the questions Object in the .compactMap{} closure

stephansupload
visit shbcf.ru