Code Monkey home page Code Monkey logo

googlestyleswiftui's Introduction

GoogleStyleSwiftUI

Badge Badge Badge - Version Badge - Swift Package Manager Badge - Platform Badge - License

Feature

  • TextField
  • SecureField
  • TextField - limiteCount, prompt
  • Refactor - SecureField
  • Fix - padding()
  • Picker
  • DatePicker
  • DatePicker - Lunar Segment
  • Configure Style Appearance - Color, Font
  • SPM

Image

TextField

import SwiftUI

struct ContentView: View {
  @State
  var text = ""

  @State
  var errorMessage = ""

  @FocusState
  var isFocused: Bool

  var body: some View {
    GSTextField(text: $text1,
                limit: 10,
                placeholder: "사용자 이름",
                editingPlaceholder: "10자리",
                isFocused: $isFocused,
                errorMessage: $errorMessage,
                description: "문자, 숫자, 마침표를 사용할 수 있습니다.")
      .padding(EdgeInsets(top: 0,
                        leading: 10,
                        bottom: 0,
                        trailing: 10))
  }
}

SecureField

import SwiftUI

struct ContentView: View {
  @State
  var text = ""

  @State
  var errorMessage = ""

  @FocusState
  var isFocused: Bool

  var body: some View {
    GSSecureField(text: $text,
                  placeholder: "비밀번호",
                  isFocused: $isFocused,
                  errorMessage: $errorMessage)
  }
}

googlestyleswiftui's People

Contributors

swift-man avatar

Watchers

 avatar

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.