Skip to content

A comprehensive, customizable, and production-ready SwiftUI components library designed for building modern applications with ease

License

Notifications You must be signed in to change notification settings

VeoUI/VeoUISwift

Repository files navigation

VeoUI

A comprehensive, customizable, and production-ready SwiftUI components library designed for building modern applications with ease

Installation

Swift Package Manager

Add VeoUI to your project through Xcode:

  1. File > Add Package Dependencies...
  2. Enter package URL: https://github.com/VeoUI/VeoUISwift.git
  3. 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")
]

Configuration

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()
        }
    }
}

Usage

Basic Example

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

Components

VeoText

VeoText("Login", style: .subtitle, color: .white)

VeoButton

VeoButton(title: "Rounded Button",
          style: .info,
          shape: .rounded,
          action: {
            print("Button tapped")
                })

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Support

For issues and feature requests, please file an issue on GitHub.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

A comprehensive, customizable, and production-ready SwiftUI components library designed for building modern applications with ease

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages