SwiftUIBuddy
ved the README
Swiftuibuddy是Swiftui應用的精美,易於使用的組件的集合。它包含自定義按鈕,選擇器,進度視圖,文本字段等等!所有組件都是高度定制的,並使用100%Swiftui構建。
該框架的設計有簡單性和功能性。它致力於類似於蘋果的設計風格並遵循人類界面指南。為了提高穩定性,Swiftuibuddy不取決於任何第三方庫或框架,並且僅使用SwiftUi提供的本機組件編寫。
如何使用Swiftuibuddy組件:
StandardButton

StandardButton ( " Standard Button " ) {
print ( " Button Tapped " )
} DestructiveButton 
DestructiveButton ( " Delete Account " , style : . bordered ) {
deleteAccount ( )
}
DestructiveButton ( " Remove Connection " ) {
removeConnection ( )
}加鮑頓
PlusButton ( color : . cyan ) {
addNewFile ( )
}解僱屁股
DismissButton {
showingSheet = false
}膠囊桿
CapsuleProgressBar ( currentStage : 4 , totalStages : 5 ) loadingspinner 
LoadingSpinner ( )Loginfield 
LoginField ( " Email " , text : $email )
LoginField ( " Password " , text : $password , fieldType : . password ) Dollartextfield ![]()
DollarTextField ( 9.40 , amount : $price )Twitterpicker 
TwitterPicker ( choices : [ " Ramen " , " Miso " , " Pho " ] , selectedIndex : $soup )放射線
RadioPicker ( choices : [ " Male " , " Female " , " Non-Binary " ] , selectedChoice : $gender )墊片

Spacers ( 4 )分隔線
Dividers ( 6 ) import SwiftUIBuddy最小部署目標是iOS 15.0。這個項目是一個正在進行的工作,因此希望它會增長,並隨意做出貢獻。