In MyCustomScroller, instead of a custom init, overriding the init with a default value worked for me.
override init(frame: CGRect = .zero) {
super.init(frame: frame)
}
Topic:
Programming Languages
SubTopic:
Swift