UIx

main

UI extension based on SwiftUI
buhe/UIx

UIx

UI extension based on SwiftUI.

LodingView - Fork of https://github.com/DanielMandea/swiftui-loading-view and minor modifications
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
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")
                }
            }
        }
    }
}

Description

  • Swift Tools 5.7.1
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Apr 01 2024 19:13:03 GMT-0900 (Hawaii-Aleutian Daylight Time)