Yet another component library on SwiftUI
Controls and styles in Figma
Some of the controls available include:
Colors, Typography, Spacing and other styles in core folder
https://github.com/oversizedev/OversizeUI.git
After the framework has been added you can import the module to use it:
import OversizeUI
To build and deploy the demo follow these steps:
Example/Example.xcodeproj
in Xcode.Example (iOS)
or other and choose a device to deploy to.Avatar(firstName: "Swift", lastName: "Apple")
.controlSize(.large)
Button("Button") { print(#function) }
.buttonStyle(.primary)
.accent()
.controlBorderShape(.capsule)
.bordered()
ColorSelector(selection: $color)
ColorSelector(selection: $color)
.colorSelectorStyle(GridColorSelectorStyle())
var items = ["One", "Two", "Three", "Four"]
@State var selection = ""
GridSelect(items, selection: $selection,
content: { item, _ in
VStack {
Icon(.circle)
Text(item)
}.padding()
})
Icon(.activity)
Row("Title")
SegmentedPickerSelector(items, selection: $selection) { item, _ in
Text(item)
}
Select("Select", items, selection: $selection) { item, _ in
Text(item)
} selectionView: { selected in
Text(selected)
}
Surface(background: .secondary) {
Text("Text")
}
TextField("Text", text: $placeholder))
.textFieldStyle(.default)
}
This project uses SwiftLint to automatically lint our Swift code for common errors. Please install it when developing in this repo by following the SwiftLint Installation Instructions.
OversizeUI is released under the MIT license. See LICENSE for details.
link |
Stars: 5 |
Last commit: 1 week ago |
Global refactor components and added new controls
Full Changelog: https://github.com/oversizedev/OversizeUI/compare/2.6.0...3.0.0
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics