Swiftpack.co - mtdtechnology-net/swiftui-components as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mtdtechnology-net.
mtdtechnology-net/swiftui-components 24.3.1
iOS UI Components and boilerplate for SwiftUI
⭐️ 1
🕓 4 weeks ago
iOS macOS
.package(url: "https://github.com/mtdtechnology-net/swiftui-components.git", from: "24.3.1")

Components

Swift Version Platform GitHub License

Overview

UIComponents is a Swift Package Manager (SwiftPM) package that provides a collection of SwiftUI elements and design helpers to enhance the development of your SwiftUI-based projects.

Features

Views

  • ImageContentView
  • InputView
  • Toast
  • GenericTextField
  • PrimaryButton

ButtonStyle

  • ActionButtonStyle
  • FullButtonStyle
  • SocialButtonStyle

ViewModifiers

  • FullButtonStyle
  • CardModifier
  • ToastView

Error

  • Alert
  • InterfaceError

Localization

  • Localization using swiftgen

Installation

Swift Package Manager

To integrate UIComponents into your Xcode project, add it as a dependency in your Package.swift file:

.package(url: "https://github.com/MTD-Technology-Romania/swiftui-components)", from: "1.0.0")

Then, add Components to your target's dependencies.

.target(
    name: "Components",
    dependencies: ["Components"]
),

Usage

Here's a simple example demonstrating how to use a component from UIComponents in your SwiftUI code:

import Components

struct ContentView: View {
    var body: some View {
        VStack {
            InputView(title: "Email", color: .gray, systemImage: "envelope", inputBackground: .white, inputOverlay: .gray) {
                TextField("Enter your email here", text: .constant(""))
                  .textContentType(.emailAddress)
                  .keyboardType(.emailAddress)
                  .foregroundColor(.gray)
            }
            .padding()
            // Add more components as needed
        }
    }
}

Documentation

For detailed documentation and examples, refer to the Documentation folder in this repository.

Contributing

Contributions are welcome! Please follow our Contribution Guidelines.

License

YourPackageName is available under the MIT license. See the LICENSE file for more info.

GitHub

link
Stars: 1
Last commit: 4 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Release 24.1.1
13 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics