[![CI Status](http://img.shields.io/travis/Josh Woomin Park/KRWalkThrough.svg?style=flat)](https://travis-ci.org/Joshua Park/KRWalkThrough)
TutorialView
can be customized to bypass touch to the underlying view while blocking only certain areas usingmakeUnavailable(rect:action:)
. By making therect
unavailable and making the whole bounds of theTutorialView
instance available--specifically in that order--users can touch anywhere except for those areas marked unavailable.TutorialView
can trigger actions without the use of adding buttons as subviews. This is also true for areas that are made available through calling one of themakeAvailable()
variants, through passing a block as theaction
argument. This obviates one having to add a button to theTutorialView
instance, and calling a function within the callback and sending a.touchUpInside
event to the underlying button.
For those who are using Swift 2.2-, there is a separate swift2.2
branch. Or you can choose to checkout 0.9.7
.
For those who have migrated to Swift 3, please read the following.
There seems to be a false memory leak bug in Swift 3 & iOS 10. What I've found out about this bug so far points me to think that this is not a real memory leak. To find out more about this, please read this StackOverflow post.
To run the example project, clone the repo, and run pod install
from the Example directory first.
KRWalkThrough is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "KRWalkThrough"
Josh Woomin Park, [email protected]
KRWalkThrough is available under the MIT license. See the LICENSE file for more info.