Anchor
使用
import Anchor
let anchorView = AnchorView(title: "Lorem Ipsum", contentView: contentScrollView, style: .light)
创建一个 Anchor 视图。
必需参数:
title
:视图的标题。
contentView
:一个包含内容的 scrollView。
可选参数:
style
:类型为 UIBlurEffect.Style
。默认值为 .dark
。
parentView
:放置 Anchor 视图的父视图。如果没有提供,则使用 UIApplication.shared.keyWindow
。
anchorView.open()
anchorView.close()
打开和关闭视图。
示例
要运行示例项目,请首先克隆仓库,然后从 Example 目录运行 pod install
。
要求
此库使用 Swift 5 制作。
安装
锚点可通过CocoaPods获得。要安装它,只需将以下行添加到您的Podfile中
pod 'Anchor'
作者
Armando Castaneda Elguero,[email protected]
许可
Anchor遵循MIT许可协议。有关更多信息,请参阅LICENSE文件。