Posts by fabcarvalhal • 1 point
5 posts
-
0
votes1
answer64
viewsA: How to pull a specific firebase document using Swift?
I believe that to obtain only one document its function to be used would be getDocument, as in the example below: //substituir 'nome-do-doc' por: adulto,infantil,juvenil let docRef =…
-
0
votes2
answers330
viewsA: JSON Array for Swift object 3
Hello, you can use the protocol Codable Swift. Currently Swift, in version 5, has the Encodable and the Decodable. The Encodable serves to encode an object for json and Decodable does reverse work.…
-
0
votes2
answers198
viewsA: Button with link to a website
Another approach would be to use the SFSafariViewController, it opens safari without leaving your app. This greatly improves the usability of the App. First, in your Viewcontroller, import the…
-
-1
votes2
answers1102
viewsA: fatal error: unexpectedly found nil while unwrapping an Optional value
The force unwrap in the text attribute is unnecessary as you are assigning a value. Try so, removing the unwrap force: @IBOutlet weak var batimentos: UILabel! if let actualBpm = bpm{…
-
0
votes1
answer138
viewsA: How do I get my app to login to a Swift 4 webview website?
one way to do this would be to use Javascript execution through WKWebView, have a function in the Javasscript of the site that receives the login and password and execute the login. Let’s assume…