Posts

Post not yet marked as solved
1 Replies
540 Views
On the beta version of Xcode, when we preview our app, some information is missing. We can see that on version 16.4 preview all the info is there, and on the contrary on version 17 two pieces of info are missing... (Photos) On iOS 17.0 (Xcode Beta 15.0) On iOS 16.4 (Xcode Normal Version) If anyone can help me tell me I will give you my code. Thank you so much sayan
Posted
by Sla1708.
Last updated
.
Post not yet marked as solved
0 Replies
543 Views
On the beta version of Xcode, when we preview our app, some information is missing. We can see that on version 16.4 preview all the info is there, and on the contrary on version 17 two pieces of info are missing... (Photos) ⬇️ iOS 17.0 (Xcode Beta 15.0) iOS 16.4 (Xcode Normal version) ⬇️ If you agree to help me, I'll give you my code so you can help me fix it. Thank you so much! Sayan
Posted
by Sla1708.
Last updated
.
Post marked as solved
3 Replies
3.8k Views
Hello I have a problem with xCode, I have this error : Cannot find « string » in scope. Thank you so much for your help Photos: My code: // //  AuthviewModel.swift //  iSpeak // //  Created by Sayan on 21.11.22. // import Foundation import Firebase class AuthViewModel: ObservableObject {     var manager = FirebaseManager.shared          @Published var isFinishedConnecting: Bool = false     @Published var isAuth: Bool = false     @Published var showError: Bool = false          var errorString: String = ""     var datas: [String: Any] = [:]          var auth: Auth {         return manager.auth     }          init() {         observeAuthentication()     }          func observeAuthentication() {         auth.addStateDidChangeListener(handleChangeListener)     }          func handleChangeListener(auth: Auth, user: User?) {         self.isFinishedConnecting = true         self.isAuth = user != nil     }          func signIn(email: String, password: String) {         guard checkValue(_string: email, value: "adresse email") else { return }         guard checkValue(_string: password, value: "Mot de passe") else { return }              }          func createUser() {              }          func checkValue(_string: String, value: String) -> Bool {         let isNotEmpty = string != ""         self.errorString = !isNotEmpty ? "" : "Merci d'entrer (value) pour continuer"         self.showError = !isNotEmpty         return isNotEmpty     } }
Posted
by Sla1708.
Last updated
.
Post marked as solved
1 Replies
1.5k Views
Hello I made an app and I have this error: Cannot find string in scope I post my code under the message please help me: Photo: ("https://developer.apple.com/forums/content/attachment/3253bf72-d034-475e-a69e-a73f32388f84" "title=Capture d’écran 2022-11-21 à 19.16.00.png;width=2036;height=1380") // //  AuthviewModel.swift //  iSpeak // //  Created by Sayan on 21.11.22. // import Foundation import Firebase class AuthViewModel: ObservableObject {     var manager = FirebaseManager.shared          @Published var isFinishedConnecting: Bool = false     @Published var isAuth: Bool = false     @Published var showError: Bool = false          var errorString: String = ""     var datas: [String: Any] = [:]          var auth: Auth {         return manager.auth     }          init() {         observeAuthentication()     }          func observeAuthentication() {         auth.addStateDidChangeListener(handleChangeListener)     }          func handleChangeListener(auth: Auth, user: User?) {         self.isFinishedConnecting = true         self.isAuth = user != nil     }          func signIn(email: String, password: String) {         guard checkValue(_string: email, value: "adresse email") else { return }         guard checkValue(_string: password, value: "Mot de passe") else { return }              }          func createUser() {              }          func checkValue(_string: String, value: String) -> Bool {       let isNotEmpty = string != "" Error : Cannot find « string » in scope          self.errorString = !isNotEmpty ? "" : "Merci d'entrer (value) pour continuer"         self.showError = !isNotEmpty         return isNotEmpty     } }
Posted
by Sla1708.
Last updated
.