Post

Replies

Boosts

Views

Activity

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 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 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 Problem again with user-defined setting
I made sure I was adding in SWIFTACTIVECOMPILATION_CONDITIONS As far as I tried in one of my project with Xcode 12.4, SWIFT_ACTIVE_COMPILATION_CONDITIONS is shown in Swift Compiler - Custom Flags section of Build Settings as Active Compilation Conditions. Not in User-Defined. Not sure if Xcode has moved it or you had done it wrong. But please try add one in Active Compilation Conditions.
Feb ’21
Reply to NavigationView creates too much of space at the top
place the ContentView() in NavigationView{}, Why are you putting NavigationView in your RiyaVitaMealApp? You have two NavigationViews nested (one in RiyaVitaMealApp and one in ContentView), which causes two navigation bars stacked. It may look like too much space on the top. Please try removing one of the NavigationViews.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21