Post

Replies

Boosts

Views

Activity

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