liquid
Bugfix Patch
Liquid()で微妙で遊び心のあるバックスプラッシュを作成します。アートワークの背後にある液体、ボタンとして、あるいは自分の形を試してみてください。あなたのビューにLiquid()を追加するだけです!
ファイル> Swiftパッケージ>パッケージの追加依存関係:https://github.com/maustinstar/liquid
Package.swiftに依存関係を追加します。swift
. package ( url : " https://github.com/maustinstar/liquid.git " , from : " 0.0.1 " ) , 液体をインポートするだけで、それをビューに追加して開始します。
struct ContentView : View {
var body : some View {
Liquid ( ) . frame ( width : 200 , height : 200 )
}
}完全な参照ガイドを参照してください。
struct ContentView : View {
var body : some View {
ZStack {
Liquid ( )
. frame ( width : 240 , height : 240 )
. foregroundColor ( . blue )
. opacity ( 0.3 )
Liquid ( )
. frame ( width : 220 , height : 220 )
. foregroundColor ( . blue )
. opacity ( 0.6 )
Liquid ( samples : 5 )
. frame ( width : 200 , height : 200 )
. foregroundColor ( . blue )
Text ( " Liquid " ) . font ( . largeTitle ) . foregroundColor ( . white )
}
}
}より多くの例を参照してください。
開始するには、完全な実装ガイドをお読みください。
Convributing.mdを参照してください。
これらのパッケージを使用して、SwiftUIアプリを次のレベルに引き上げてください!