Post

Replies

Boosts

Views

Activity

Reply to Swift Firebase Error: Thread 1: "Failed to get FirebaseDatabase instance: Specify DatabaseURL within FIRApp or from your databaseForApp:URL: call."
Firebase is not a framework of Apple's. You should better find an appropriate place to ask about it to get better responses sooner. But generally, it is not considered to be a good habit to instantiate a class which will immediately disposed. var ref = DatabaseReference() ref = Database.database().reference().child("users").child(uid) Why don't you write it simply? var ref = Database.database().reference().child("users").child(uid)
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21
Reply to App Validation - Got Bad bundle identifier because of application extension bundle id format
As far as I read the message, and not contain more than one period . after the application's bundle ID The bundle identifier com.company.name.product.mobile.Share.External.Information is clearly against it. (And I have never found such an identifier in any of the articles explaining Share Extension.) or it should be like "com.company.name.product.mobile.shareexternalinformation". I haven't tried it myself, but it matches the description in the message, only one period . after the application's bundle ID.
May ’21
Reply to Tab bar item localization
Here is an example. LevelsViewController is a view controller that is displayed when tapping a tab bar item. UITabBarController collects tabBarItems of the content view controllers just after they are initialized. It is too late in viewDidLoad or viewWillAppear. Try something like this: override func awakeFromNib() { super.awakeFromNib() tabBarItem.title = "LevelsVC-TabBarItem".localize() } Or required init?(coder: NSCoder) { super.init(coder: coder) tabBarItem.title = "LevelsVC-TabBarItem"//.localize() } In this scenario, you have no need to subclass UITabBarController.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21
Reply to Error: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions.
Path Progress and Courses are different Views. mClass is an array of classes  If somethings was wrong about them, an error would be shown on barHome. Please show the definitions of them if you want to fix your issue. Or if the SOLVED mark is not a mistake and you really have solved your issue, please share your solution.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to Swift App UI Button Scope
Don't you remember what I wrote before? Ignore the word scope in the error message and find what you need to define. When you get an error message like Cannot find 'signIn', it is signIn that you need to define, not Button. But your code currently shown does not make sense. Line 27...29: Text are not appropriate for WindowGroup Line 47: You cannot write Button at the toplevel of the code Line 51...59: Button is a predefined type in SwiftUI, it is not what you need to define
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to push or local notification
I mean I get data from server by API the data take time to load I want to refresh data automatically in background I may not be understanding what you mean yet, but it would work. Though, I have never tried to do background tasks with SwiftUI.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21