Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/buhe/uix
UI extension based on SwiftUI
https://github.com/buhe/uix
swiftui
Last synced: 26 days ago
JSON representation
UI extension based on SwiftUI
- Host: GitHub
- URL: https://github.com/buhe/uix
- Owner: buhe
- License: apache-2.0
- Created: 2023-08-26T08:04:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-05T05:00:01.000Z (11 months ago)
- Last Synced: 2024-10-09T23:02:49.991Z (about 1 month ago)
- Topics: swiftui
- Language: Swift
- Homepage: https://buhe.dev
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UIx
UI extension based on SwiftUI.LodingView - Fork of https://github.com/DanielMandea/swiftui-loading-view and minor modifications
```swift
import SwiftUI
import UIxstruct ExampleView: View {
@State var isLoading: Bool = false
var body: some View {
VStack {
Toggle("Show activity indicator", isOn: $isLoading)
// Dots
Text("This is My Personal Data")
.dotsIndicator(when: $isLoading)
// Circle
Text("This is My Personal Data")
.circleIndicator(when: $isLoading)
// Container
Text("This is My Personal Data")
.containerIndicator(when: $isLoading) {
Text("Animated text")
}
}
}
}```
TabBar
```swift
import SwiftUI
import UIxstruct ContentView: View {
var body: some View {
NavigationView {
VStack{
TabBar{
VStack{
Text("A1")
Image(systemName: "plus")
Text("A1")
Text("A1")
Text("A1")
Text("A1")
}
.border(.blue)
.tabbar("A11111")
VStack{
Text("A2")
Text("A2")
Text("A2")
Text("A2")
Image(systemName: "plus")
Text("A2")
}
.border(.blue)
.tabbar("A2222")
VStack{
Text("A3")
Text("A3")
Text("A3")
Image(systemName: "plus")
Text("A3")
Text("A3")
}
.border(.blue)
.tabbar("A333333333")
}
}
}
}
}
```