BorderedTextField

0.0.2

SwiftUI custom bordered text field with placeholder text in border
KrishnaRLolage/BorderedTextField

What's New

0.0.2

2022-03-09T09:49:49Z

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

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Aug 30 2022 16:48:20 GMT-0500 (GMT-05:00)