Post

Replies

Boosts

Views

Activity

Reply to Changing Navigation bar back button title in run time.
The back button in the UINavigationBar under control of UINavigationView is constructed based on the settings of the previous view controller. Please try this:         self.navigationController?.navigationBar.backItem?.backButtonTitle = backButtonTitle (Not topItem, but backItem. Modifying topItem would be effective only before the navigation takes place.) By the way, your question is not related to the SwiftUI framework and the tag SwiftUI is not appropriate. Better use UIKit instead.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
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
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