BSTextField 0.1.3

BSTextField 0.1.3

Zafer AYAN维护。




BSTextField

CI Status Version License Platform

概述

BSTextField是UITextField的一个子类,使用Swift编写,可以应用类似于Bootstrap按钮样式的类名。

BSTextField screen recording

示例

要运行示例项目,请先克隆仓库,然后从示例目录中运行pod install

使用CocoaPods安装

BSTextField可通过CocoaPods获取。要安装它,只需将以下行添加到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

用法

任何textField都可以通过指定的类名像Bootstrap按钮一样被样式化。参考:https://bootstrap.ac.cn/docs/4.1/components/buttons/#examples

基本的textField类名是

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

轮廓式textField类名是

  • 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

示例项目

这个仓库中包含了一个示例项目。要运行示例项目,首先从该项目目录中运行pod install命令。

作者

Zafer AYAN,[email protected]

许可

BSTextField遵循MIT许可。更多信息请查看LICENSE文件。