Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 UIx

struct 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 UIx

struct 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")
}
}
}
}
}
```