Post

Replies

Boosts

Views

Activity

Reply to variables in SwiftUi to another Framework
Instance properties of a view is very private (adding public makes no sense) as the instance of the view is sort of temporal template which will be recreated at any time. One way, is to declare the variable independently from the view and use it in the view and other frameworks. Hard to say any details unless knowing how you want to use the variable.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to LaunchScreen doesn't show on simulator in Xcode 12.4
Is this some bug? May be, or may not be. I created a vanilla project with Xcode 12.4 of type iOS/Game/Sprite Kit. And then added LaunchScreen.storyboard with File > New > File... > User Interface/Launch Screen. I then chose the file in the pull down Launch Screen File. Whether I added an image (UIImageView) or not, the content of LaunchScreen.storyboard is shown at launch of the app. One thing I needed to care about is that without adding constraints to the UIImageView, the image was shown at an unexpected place. So, you might have done something wrong, or might have hit the edge case of some sort of bugs. Not sure under the currently shown info.
Feb ’21
Reply to Did Xcode 12.4 get rid of "storyboards" by default?
 If I go without SwiftUI, do I lose anything? With choosing Storyboard, you will see ViewController.swift or AppDelegate.swift or Main.storyboard -- all such things. will I lose any new functionality (enduser wise) by not using SwiftUI? As already said, you have never used any SwiftUI functionalities. How many of your .swift file have import SwiftUI? If you want to go with what you have learnt till now, you need to choose Storyboard. You can switch to SwiftUI and will find many functionalities are lacking in SwiftUI and many things are quite difficult in SwiftUI which was easy or not easy but you have learnt how. Please clarify one thing: Were you thinking you were using SwiftUI?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to Did Xcode 12.4 get rid of "storyboards" by default?
things have changed in 12.4.  Things had changed in 12.0. For instance there's no more AppDelegate.swift file. I would start at class ViewController: UIViewController before. Now there's struct ContentView: View  which I don't recall when in started learning in late 2020. Do I need to repeat? When you choose Storyboard as Interface` when creating a new project, you can find AppDelegate.swift or ViewController.swift. And then you can remove what you think is not needed for you. Is it that I never used SwiftUI? At lease in your past posts, you have never used SwiftUI.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to Can you turn off buffer overflow protections?
any password of 9 or more characters ny password of 13 or more characters Seems you want to ignore the fact that there were no description about what you had input on SIGABRT. And you expect some specific memory allocation on auto variables. Anyway, please clarify the difference between what you expect and what you actually get, for each possible inputs. Some of them may be caused by buffer overflow protections, and some other by your wrong expectations.
Jan ’21