Post

Replies

Boosts

Views

Activity

Reply to How I can access one document in my Firestore Firebase using a button in Swiftui?
You can do this for the student Button { let docRef = db.collection("login").document("student") docRef.getDocument { (document, error) in     if let document = document, document.exists {         let dataDescription = document.data().map(String.init(describing:)) ?? "nil"         print("Document data: \(dataDescription)") //Do Other Stuff Here     } else {         print("Document does not exist")     } } } Button { let docRef = db.collection("login").document("instructor") docRef.getDocument { (document, error) in     if let document = document, document.exists {         let dataDescription = document.data().map(String.init(describing:)) ?? "nil"         print("Document data: \(dataDescription)") //Do Other Stuff Here     } else {         print("Document does not exist")     } } } Is this what you wanted? If not reply with more detail on what you want because I didn't quite understand. If you want help with firebase. You can go to https://firebase.google.com/docs/firestore/query-data/get-data
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’22
Reply to Swift Playground or Xcode Playground?
You need to submit a .swiftpm which can be created with Xcode on Mac or the Playground app on iPad. To do this on Mac you DON'T use the swift playgrounds app(on App Store). You use Xcode by: File > New > Project... under the iOS tab there should be a Swift Playgrounds App choice.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’22
Reply to swift student challege
The Swift Playgrounds App from the App Store can't be used for the swift challenge only Xcode can be used on mac. To create a .swiftpm project you have to follow these steps: Open Xcode File > New... > Project Tap the iOS tab Select "Swift Playgrounds App"
Apr ’22
Reply to How I can access one document in my Firestore Firebase using a button in Swiftui?
You can do this for the student Button { let docRef = db.collection("login").document("student") docRef.getDocument { (document, error) in     if let document = document, document.exists {         let dataDescription = document.data().map(String.init(describing:)) ?? "nil"         print("Document data: \(dataDescription)") //Do Other Stuff Here     } else {         print("Document does not exist")     } } } Button { let docRef = db.collection("login").document("instructor") docRef.getDocument { (document, error) in     if let document = document, document.exists {         let dataDescription = document.data().map(String.init(describing:)) ?? "nil"         print("Document data: \(dataDescription)") //Do Other Stuff Here     } else {         print("Document does not exist")     } } } Is this what you wanted? If not reply with more detail on what you want because I didn't quite understand. If you want help with firebase. You can go to https://firebase.google.com/docs/firestore/query-data/get-data
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Swift Playground or Xcode Playground?
You need to submit a .swiftpm which can be created with Xcode on Mac or the Playground app on iPad. To do this on Mac you DON'T use the swift playgrounds app(on App Store). You use Xcode by: File > New > Project... under the iOS tab there should be a Swift Playgrounds App choice.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Apr ’22
Reply to Submission status
There is! Go to https://developer.apple.com/wwdc22/swift-student-challenge/apply and make sure you're signed in it should say that your submission has been received. You also do get a confirmation email.
Replies
Boosts
Views
Activity
Apr ’22
Reply to can i use apple logo on my playgrounds app?
I'm not sure, but you can always email swiftstudentchallenge@ apple.com with any questions. I'm afraid it might be too late, but it never hurts to try! I'm not 100% sure you can, but I'm pretty sure you can if you give credits to apple for the logo. This is a tough question, so do what you think is best
Replies
Boosts
Views
Activity
Apr ’22
Reply to swift student challege
The Swift Playgrounds App from the App Store can't be used for the swift challenge only Xcode can be used on mac. To create a .swiftpm project you have to follow these steps: Open Xcode File > New... > Project Tap the iOS tab Select "Swift Playgrounds App"
Replies
Boosts
Views
Activity
Apr ’22