目录
目录README.md

BorderedTextField

SwiftUI custom bordered text field with placeholder text in border.

Usage:

This control can be used in following different ways

BorderedTextField(placeHolder: .constant("TextField Editable"), text: $text)

BorderedTextField(placeHolder: .constant("TextField Non Editable"), text: $text, isEditingEnabled: false) 

BorderedTextField(placeHolder: .constant("Password Field"), text: $text, isSecureField: true)

BorderedTextField(placeHolder: .constant("Hide PlaceHolder"), text: $text, showBorderPlaceHolder: false, highlightColor: Color.green)

BorderedTextField(placeHolder: .constant("Change Border Color"), text: $text, borderColor: Color.red)

BorderedTextField(placeHolder: .constant("Focus Highlight Color "), text: $text, borderColor: Color.red, highlightColor: Color.green)

Simulator Screen Recording - iPhone 13 Pro - 2022-03-08 at 19 03 06

Installation

Currently BorderedTextField is only avaliable via Swift Package Manager. You can also add manually to your project.

Swift Package Manager (SPM)

If you have already Swift package set up, add BorderedTextField as a dependency to your dependencies in your Package.swift file.

dependencies: [
    .package(url: "https://github.com/KrishnaRLolage/BorderedTextField.git")
]
关于
35.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号