Post

Replies

Boosts

Views

Activity

Reply to Changing a value with the stepper
but 1 is default so this seemed unnecessary. You may be mistaking something. If you want to use stepper correctly, you need to set value. My aim with the VC is to change the value of the ration array in the model, the VC only shows the number listed in the model Can't you see what is given to onValueChanged? Please try before saying something based on wrong assumptions.
Topic: Programming Languages SubTopic: Swift 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
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