lemanhtien / MTSlideToOpen

A simple SlideToUnlock iOS UI component
MIT License
145 stars 51 forks source link

How to inherit MTSlideToOpenView? #21

Closed kevinlee-app closed 3 years ago

kevinlee-app commented 4 years ago

Hello,

Recently i just install MTSlideToOpen pod and found out that it suits my use case. Since i have to customize this button i tried to create a class that inherit MTSlideToOpenView but i got this error Cannot inherit from non-open class 'MTSlideToOpenView' outside of its defining module

From my searching it is because MTSlideToOpenView is not open class. Is there any way to inherit MTSlideToOpenView?

I create a class like this:

class CustomSlidingButton: MTSlideToOpenView {

}