I'm struggling with this particular error as a result of XCode 8 swift 3 changes, and can't find anywhere a detailed explanation as to why this is happening.
Error:
Constructing an object of class type 'PermissionScope' with a metatype value must use a 'required' initializer
In Method:
public convenience init() {
type(of: self).init(backgroundTapCancels: true)
}
Any help would be appreciated.
i think it means you should add the world 'required'
class PermissionScope {
required init(backgroundTapCancels : Bool){
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With