目录
#AAExtensions
##描述
AAExtensions 是一组针对 iOS 应用程序的 UI 扩展和辅助函数,用 Swift 4.2 编写。
##演示
要运行示例项目,首先克隆仓库,然后从 Example 目录运行 pod install
。
##要求
- iOS 10.0+
- Xcode 8.0+
- Swift 4.2+
安装
AAExtensions
可以使用 CocoaPods、Carthage 或手动安装。
##CocoaPods
AAExtensions
通过 CocoaPods 提供。要安装 CocoaPods,请运行
$ gem install cocoapods
然后创建一个包含以下内容的 Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target '<Your Target Name>' do
pod 'AAExtensions', '1.1'
end
最后,运行以下命令进行安装
$ pod install
##Carthage
要安装 Carthage,请使用 Homebrew 运行
$ brew update
$ brew install carthage
然后将以下行添加到 Cartfile 中
github "EngrAhsanAli/AAExtensions" "master"
然后在你使用该库的所有文件中导入库
import AAExtensions
##手动安装
如果您不希望使用上述提到的任何依赖管理器,您可以将 AAExtensions
手动集成到项目中,即将 Classes 文件夹中包含的文件添加到您的项目中。
入门
AAExtensions 列表
扩展
NSLayoutConstraint 扩展
UIApplication 扩展
UIBarButtonItem 扩展
UICollectionView 扩展
UICollectionViewCell 扩展
UIControl 扩展
UIFont 扩展
UIImage 扩展
UIImageView 扩展
UILabel 扩展
UINavigationController 扩展
UIRefreshControl 扩展
UIScrollView 扩展
UISegmentedControl 扩展
UIStackView 扩展
UIStoryboard 扩展
UITabBar 扩展
UITableView 扩展
UITableViewCell 扩展
UITextField 扩展
UIView 扩展
UIViewController 扩展
模块
AAClosureSleeve
AATimer
AAUpdateModule
AADualConstantConstraint
AAKeyboardLayoutConstraint
AAReversibleConstraint
AAStackViewSeparator
AABackButton
AALoadingButton
AARoundedButton
AACarouselFlowLayout
AAExpandableLabel
AAGradientLabel
AALabelParagraph
AALinedLabel
AATimerLabel
AAVerticalAlignLabel
AAFloatingTextField
AAIconTextField
AAPlaceholderTextView
AABorderLinesView
AACurvedView
AASegmentButton
#贡献 & 许可协议
AAExtensions
可在 MIT 许可协议下获得。有关更多信息,请参阅 LICENSE 文件。
欢迎提交拉取请求!最佳贡献将包括对已知会在典型应用程序生命周期中阻塞主线程的类/方法的替换或配置。
如果您在您的应用程序中使用 AAExtensions
,请发电子邮件给 工程师 Ahsan Ali