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 How to define options for CIFIlter?
Are you sure kCGImageSourceTypeIdentifierHint is the right key for your purpose? The doc of kCGImageSourceTypeIdentifierHint says This key can be provided in the options dictionary when you create a CGImageSource object, no mention about CIFilter. At least, the key needs to be of type CIRAWFilterOption, not String. let sourceTypeIdentifierHint = CIRAWFilterOption(rawValue: kCGImageSourceTypeIdentifierHint as String) let rfo: [CIRAWFilterOption: Any] = [ sourceTypeIdentifierHint : "com.sony.raw-image" ]
Topic: Media Technologies SubTopic: General Tags:
Feb ’21
Reply to I get the error "Unexpectedly found nil while implicitly unwrapping an Optional value" when calling a protocol method
This line is causing the issue: let storeView = storeViewController() (In Swift, type names should start with Capital letters.) You should not create a new instance of a view controller using init(). You need to access the right instance of storeViewController without creating a new one. To find how to fix, you need to clarify the relationship (transition) between storeViewController and liveViewController.
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’21