要运行示例项目,请克隆该仓库,然后首先从 Example 目录运行 pod install
。
或者执行 pod try FoggyColors
import SwiftUI
import FoggyColors
struct ContentView: View {
var body: some View {
FoggyColorsView(
blurRadius: 64,
globalOpacity: 0.6,
elementOpacity: 0.4,
animated: true,
numberShapes: 5
)
.ignoresSafeArea()
}
}
FoggyColors 可以通过 CocoaPods 获得。要安装它,只需将以下行添加到您的 Podfile 中
pod 'FoggyColors'
只需在 Xcode 中将此存储库添加到您的项目中
alexdremov, dremov.me@gmail.com
FoggyColors 在 MIT 许可证下可用。有关更多信息,请参见 LICENSE 文件。