Latest 0.1.3
Homepage https://github.com/ozcanzaferayan/BSTextField
License MIT
Platforms ios 8.0
Authors

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, [email protected]

License

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

Latest podspec

{
    "name": "BSTextField",
    "version": "0.1.3",
    "summary": "Class name based Bootstrap textField design implementation for Swift/iOS.",
    "description": "Given textField class name, textField can redesign itself with that class accordingly to Bootstraps definition",
    "homepage": "https://github.com/ozcanzaferayan/BSTextField",
    "screenshots": "https://raw.githubusercontent.com/ozcanzaferayan/BSTextField/master/Screenshots/BSTextField_screen_recording.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ozcanzaferayan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ozcanzaferayan/BSTextField.git",
        "tag": "0.1.3"
    },
    "social_media_url": "https://twitter.com/zaferayan",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BSTextField/Classes/**/*"
}

Pin It on Pinterest

Share This