Skip to content

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

License

Notifications You must be signed in to change notification settings

ozcanzaferayan/BSButton

Repository files navigation

BSButton

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, ozcanzaferayan@gmail.com

License

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages