It is not possible to specialize a non-generic type of UIViewController,

I am trying to use UIScrollViewDelegate:

class ViewController: UIViewController <UIScrollViewDelegate> {} 

But I have a mistake: Cannot specialize non-generic type 'UIViewController'

+6
source share
1 answer

Your syntax is incorrect. You do not use parentheses in Swift,

 class ViewController: UIViewController, UIScrollViewDelegate {} 
+16
source

Source: https://habr.com/ru/post/986527/


All Articles