Latest 0.1.1
Homepage https://github.com/ozcanzaferayan/BSButton
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Overview

BSButton is a subclass of UIButton, written in swift, that apply styles like Bootstrap buttons.

BSButton screen recording

Example

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

Installation with CocoaPods

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

pod 'BSButton'
# 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 button can be styled like Bootstrap buttons with given name of class. For reference: https://getbootstrap.com/docs/4.1/components/buttons/#examples

Basic button class names are:

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

Outlined button class names are:

  • btn-outline-primary
  • btn-outline-secondary
  • btn-outline-success
  • btn-outline-danger
  • btn-outline-warning
  • btn-outline-info
  • btn-outline-light
  • btn-outline-dark
  • btn-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

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

Latest podspec

{
    "name": "BSButton",
    "version": "0.1.1",
    "summary": "Class name based Bootstrap button design implementation for Swift/iOS.",
    "description": "Given button class name, button can redesign itself with that class accordingly to Bootstraps definition",
    "homepage": "https://github.com/ozcanzaferayan/BSButton",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Zafer AYAN": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ozcanzaferayan/BSButton.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BSButton/Classes/**/*"
}

Pin It on Pinterest

Share This