liquid
Bugfix Patch
Liquid() 로 미묘하고 장난스러운 백스 플래시를 만듭니다. 아트 워크 뒤에, 버튼 또는 자신의 모양으로 액체를 사용해보십시오. 시작하려면 Liquid() 를 추가하십시오!
파일> 스위프트 패키지> 패키지 추가 종속성 추가 : https://github.com/maustinstar/liquid
Package.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 )
}
}
}더 많은 예를보십시오.
시작하려면 전체 구현 안내서를 읽으십시오.
Contributing.md를 참조하십시오.
이 패키지로 Swiftui 앱을 다음 단계로 끌어 올리십시오!