import Anchor
let anchorView = AnchorView(title: "Lorem Ipsum", contentView: contentScrollView, style: .light)
Create an Anchor View.
Required
title
: Title of your view.
contentView
: A scrollView that houses your content.
Optional
style
: Of type UIBlurEffect.Style
. Default value is .dark
.
parentView
: A parent view to place the Anchor View in. If none is provided, UIApplication.shared.keyWindow
is used.
anchorView.open()
anchorView.close()
Open and close view.
To run the example project, clone the repo, and run pod install
from the Example directory first.
This pod is made with Swift 5.
Anchor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Anchor'
Armando Castaneda Elguero, [email protected]
Anchor is available under the MIT license. See the LICENSE file for more info.