SkillAgentSearch skills...

BSTextField

Class name based Bootstrap textfield design implementation for Swift/iOS.

Install / Use

/learn @zaferayan/BSTextField
About this skill

Quality Score

0/100

Category

Design

Supported Platforms

Universal

README

BSTextField

CI Status Version License Platform

Overview

BSTextField is a subclass of UITextField, written in swift, that apply styles with class names like Bootstrap buttons.

BSTextField screen recording

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation with CocoaPods

BSTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BSTextField'
# Workaround for Cocoapods issue #7606
post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings.delete('CODE_SIGNING_ALLOWED')
    config.build_settings.delete('CODE_SIGNING_REQUIRED')
  end
end

Usage

Any textField can be styled like Bootstrap buttons with given name of class. For reference: https://getbootstrap.com/docs/4.1/components/buttons/#examples

Basic textField class names are:

  • txt-primary
  • txt-secondary
  • txt-success
  • txt-danger
  • txt-warning
  • txt-info
  • txt-light
  • txt-dark
  • txt-link

Outlined textField class names are:

  • txt-outline-primary
  • txt-outline-secondary
  • txt-outline-success
  • txt-outline-danger
  • txt-outline-warning
  • txt-outline-info
  • txt-outline-light
  • txt-outline-dark
  • txt-outline-link

Example Project

An example project is included with this repo. To run the example project, clone the repo, and run pod install from the Example directory first.

Author

Zafer AYAN, ozcanzaferayan@gmail.com

License

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

Related Skills

View on GitHub
GitHub Stars10
CategoryDesign
Updated1y ago
Forks3

Languages

Swift

Security Score

75/100

Audited on Feb 6, 2025

No findings