[](https://travis-ci.org/Joshua Park/KRWalkThrough)
TutorialViewcan be customized to bypass touch to the underlying view while blocking only certain areas usingmakeUnavailable(rect:action:). By making therectunavailable and making the whole bounds of theTutorialViewinstance available--specifically in that order--users can touch anywhere except for those areas marked unavailable.TutorialViewcan 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 theactionargument. This obviates one having to add a button to theTutorialViewinstance, and calling a function within the callback and sending a.touchUpInsideevent 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.