liquid
Bugfix Patch
Cree un protector contra salpicaduras sutil y juguetón con Liquid() . Pruebe líquido detrás de su obra de arte, como un botón o incluso con sus propias formas. ¡Simplemente agregue Liquid() a su vista para comenzar!
Archivo> paquetes Swift> Agregar dependencia del paquete: https://github.com/maustinstar/liquid
Agregue una dependencia en su Package.swift
. package ( url : " https://github.com/maustinstar/liquid.git " , from : " 0.0.1 " ) , Simplemente importe líquido y agréguelo a su vista para comenzar.
struct ContentView : View {
var body : some View {
Liquid ( ) . frame ( width : 200 , height : 200 )
}
}Vea la guía de referencia completa.
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 )
}
}
}Ver más ejemplos.
Para comenzar, lea la guía de implementación completa.
Ver contribuyente. MD.
¡Lleve sus aplicaciones Swiftui al siguiente nivel con estos paquetes!