I am trying to use UIScrollViewDelegate:
class ViewController: UIViewController <UIScrollViewDelegate> {}
But I have error: Cannot specialize non-generic type 'UIViewController'
Your syntax is incorrect. You don't use the brackets in Swift,
class ViewController: UIViewController, UIScrollViewDelegate {}
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