Code Monkey home page Code Monkey logo

swiftuibuddy's Introduction

SwiftUIBuddy

Description

SwiftUIBuddy is a collection of beautiful, easy-to-use components for your SwiftUI App. It contains custom Buttons, Pickers, Progress Views, Text Fields, and so much more! All of the components are highly customizable and built using 100% SwiftUI.

Motivation

The framework was designed with simplicity and functionality in mind. It strives to resemble Apple's design style and follow Human Interface Guidelines. For increased stability, SwiftUIBuddy does not depend on any 3rd party libraries or frameworks and is written only using native components provided by SwiftUI.

Wiki

How to use SwiftUIBuddy Components:

Buttons

     StandardButton

StandardButton("Standard Button") {
    print("Button Tapped")
}

     DestructiveButton

DestructiveButton("Delete Account", style: .bordered) {
    deleteAccount()
}

DestructiveButton("Remove Connection") {
    removeConnection()
}

     PlusButton

PlusButton(color: .cyan) {
    addNewFile()
}

     DismissButton
  

DismissButton {
    showingSheet = false
}

Progress Views

       CapsuleProgressBar

CapsuleProgressBar(currentStage: 4, totalStages: 5)

       LoadingSpinner
 

LoadingSpinner()

Fields

    LoginField

  

LoginField("Email", text: $email)
LoginField("Password", text: $password, fieldType: .password)

    DollarTextField

  

DollarTextField(9.40, amount: $price)

Pickers

    TwitterPicker

   

TwitterPicker(choices: ["Ramen", "Miso", "Pho"], selectedIndex: $soup)

    RadioPicker

   

RadioPicker(choices: ["Male", "Female", "Non-Binary"], selectedChoice: $gender)

Helper Tools

    Spacers

   

Spacers(4)

    Dividers

Dividers(6)

How to Install

  1. Go to Xcode -> File -> Add Packages
  2. Paste https://github.com/Daniel-Berezhnoy/SwiftUIBuddy into the search bar
  3. Confirm and install the Package
  4. Import SwiftUIBuddy in the file(s) where you want to use it
import SwiftUIBuddy

Notes

The minimum deployment target is iOS 15.0. This project is a work-in-progress, so expect it to grow, and feel free to contribute.

swiftuibuddy's People

Contributors

daniel-berezhnoy avatar

Stargazers

Muhammad Umer avatar  avatar ZinovevSasha avatar David Lajos avatar Fatih Durmaz avatar Thierno Diallo avatar  avatar Prashant Wosti avatar  avatar Somnath J avatar Lucía avatar Juan Manuel Gentili avatar Frederik Riedel avatar Vui Nguyen avatar Jibril Gueye avatar Ryan Rook avatar Lika avatar Jesse Russell avatar Gareth Price avatar iremkaraoglu avatar Jacob H avatar Aaron avatar Gerald Wood avatar  avatar

Watchers

MD Rohejul Islam avatar  avatar

swiftuibuddy's Issues

Screenshots

Would it be possible to have screenshots in the readme to show what components you include and how they look?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.