Anchor
Usage
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.
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
This pod is made with Swift 5.
Installation
Anchor is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Anchor'
Author
Armando Castaneda Elguero, [email protected]
License
Anchor is available under the MIT license. See the LICENSE file for more info.