Post

Replies

Boosts

Views

Activity

Reply to Disable Dark Mode for iOS, iPadOS and macOS Catalyst App using Swift Programming Language
When I enter it, It itself automatically switches to key called 'Appearance' When the raw key UIUserInterfaceStyle is shown as Appearance in human readable mode, that means UIUserInterfaceStyle is (at least, once was) the supported key. Appearance doesn't have Light / Dark or anything... For many values taking String value, the value would not be shown automatically. When I enter it is info.plist it doesn't get accepted... You have not clarified what you have entered on what key...
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to nil on unwrapping ScrollView
Thanks for showing the code. This is the worst part of your code: IntroSliderViewController() You are calling the undocumented initializer init() of IntroSliderViewController, in almost all cases, it would create a garbage object which causes Fatal error: Unexpectedly found nil. When you want to instantiate a view controller that you have defined on the storyboard with subviews and/or IBOutlets/IBActions, you need to instantiate it through the storyboard. Like this: let introSliderVC = self.storyboard?.instantiateViewController(withIdentifier: "IntroSliderViewController") self.present(introSliderVC, animated: true, completion: nil) (You need to put the right Storyboard ID IntroSliderViewController to the view controller in the Identity Inspector.)
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21
Reply to nil on unwrapping ScrollView
My application crashes when I call the ViewController of the slider.  How are you showing the view controller? Using segue? Or something else? And please show the whole message you get and which line it happens.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21
Reply to Help with documentation : example: DisclosureGroup
my problem is with api documentation like we discuss earlier  In fact, the documentations of SwitfUI are far worse than poor. Maybe some words which are excluded from this site would be appropriate. I really wonder why Apple's engineers (not Document engineer, but the designers and the implementers) are not interested in writing a good documentation. But one reason you cannot read them well is that you assume things where it is not expected. You first assumed <Label, Content> would define the parameters of an initializer, but it does not. And even in C sharp, generic parameters does not define the parameters of a constructor. I do agree that SwiftUI forces us some different aspects than that of procedural programming, but there are many of such things waiting for you and stopping on a type header does not seem to be a good attitude. Anyway, check the documentation of the initializer when you want to call init of a struct.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to Calling a POST Form with URLSession.shared.dataTask
aspStatus is a Class that return to me true or false (if false, a message why its false): Thanks for showing the class. But you have not shown the declaration of aspStatus (I do not mean AspStatus), nor any code using the class AspStatus. So it does not give any useful info to me. I just don't understand your last part: In your case, from the opening brace { on line 13 of validatingLogin() to the closing brace } on line 34 is the completion handler.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21