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。这个项目是一个正在进行的工作,因此希望它会增长,并随意做出贡献。