A comprehensive, customizable, and production-ready SwiftUI components library designed for building modern applications with ease
Add VeoUI to your project through Xcode:
- File > Add Package Dependencies...
- Enter package URL:
https://github.com/VeoUI/VeoUISwift.git
- Select the version you want to use (Latest version is recommended)
Or add it to your Package.swift
:
dependencies: [
.package(url: "https://github.com/VeoUI/VeoUISwift.git", from: "0.9.0")
]
Before using VeoUI Library components, you need to configure it with your custom settings:
import SwiftUI
import VeoUI
@main
struct VeoUIApp: App {
init() {
VeoUI.configure(
primaryColor: Color(hex: "#e74c3c"),
primaryDarkColor: Color(hex: "#c0392b"),
infoColor: Color(hex: "#2ecc71"),
warningColor: Color(hex: "#f1c40f"),
dangerColor: Color(hex: "#e74c3c"),
isRTL: true,
mainFont: "Rubik-Bold")
}
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
import SwiftUI
import VeoUI
struct ContentView: View {
var body: some View {
VeoButton(title: "Custom Gradient + Shape",
shape: .rounded,
elevation: 4,
gradientColors: (Color(hex: "#16a085"), Color(hex: "#2ecc71")),
action: {
print("Button tapped")
})
}
}
VeoText("Login", style: .subtitle, color: .white)
VeoButton(title: "Rounded Button",
style: .info,
shape: .rounded,
action: {
print("Button tapped")
})
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
For issues and feature requests, please file an issue on GitHub.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.