{"id":24067845,"url":"https://github.com/chongzone/keenextension","last_synced_at":"2025-04-24T00:07:20.955Z","repository":{"id":56917843,"uuid":"414450953","full_name":"chongzone/KeenExtension","owner":"chongzone","description":"Swift 版本 对 UIKit、Foundation 等系统库中常见控件属性、函数的扩展","archived":false,"fork":false,"pushed_at":"2021-10-25T06:49:26.000Z","size":1062,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-24T00:07:10.298Z","etag":null,"topics":["extension","foundation","log","masnory","namespace","objective-c","snapkit","swift","tool","uikit","xcode"],"latest_commit_sha":null,"homepage":"https://github.com/chongzone/KeenExtension","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chongzone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-07T03:42:17.000Z","updated_at":"2024-11-08T13:40:13.000Z","dependencies_parsed_at":"2022-08-21T04:50:49.367Z","dependency_job_id":null,"html_url":"https://github.com/chongzone/KeenExtension","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chongzone%2FKeenExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chongzone%2FKeenExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chongzone%2FKeenExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chongzone%2FKeenExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chongzone","download_url":"https://codeload.github.com/chongzone/KeenExtension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250535099,"owners_count":21446508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","foundation","log","masnory","namespace","objective-c","snapkit","swift","tool","uikit","xcode"],"created_at":"2025-01-09T12:39:16.120Z","updated_at":"2025-04-24T00:07:20.940Z","avatar_url":"https://github.com/chongzone.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![KeenExtension](https://raw.githubusercontent.com/chongzone/KeenExtension/master/Resources/KeenExtensionLogo.png)\n\n![CI Status](https://img.shields.io/travis/chongzone/KeenExtension.svg?style=flat)\n![](https://img.shields.io/badge/swift-5.0%2B-orange.svg?style=flat)\n![](https://img.shields.io/badge/pod-v1.2.4-brightgreen.svg?style=flat)\n![](https://img.shields.io/badge/platform-iOS-orange.svg?style=flat)\n![](https://img.shields.io/badge/license-MIT-blue.svg)\n\n## 功能介绍\n\n### 文件结构\n\n```ruby\nKeenExtension\n├── Assets\n└── Classes\n    ├── Extensions\n    │   ├── FoundationEx\n    │   └── UIKitEx\n    ├── SnapKitEx\n    │   └── SnapKit+Ex.swift\n    └── Utils\n        ├── KcPrefixWrapper.swift\n        └── Log.swift\n```\n\n### `Extensions` 文件\n\n#### `Foundation` 系统库\n- [x] `Array` 添加元素、转化字符串\n- [x] `Dictionary` 索引、转化字符串\n- [x] `Collection` 集合类取值防越界处理 \n- [x] `Bundle` app 名称、版本、标识符等\n- [x] `NSObject` 类名获取、运行时运用等\n- [x] `Data` 根据字节数据流得到图片类型 \n- [x] `String` 索引、截取、字符串转换、有效性校验等\n- [x] `DispatchQueue` 异步事件、延迟事件、主线程事件等\n- [x] `UserDefaults`  对系统对象、自定义对象的增删改查等\n- [x] `Date`  年份月份天数周数等具体日期、日期字符串转换等\n- [x] `NSAttributedString` 链式属性、附件插入、富文本设置等\n- [x] `FileManager` 文件路径、文件的读写拷贝移动、文件大小、属性等\n- [x] `AVAssetExportSession` 本地视频压缩\n\n#### `UIKit` 系统库\n- [x] 基本类型转换、视觉适配等\n- [x] `UIDevice` 设备信息、磁盘容量等\n- [x] `UIFont` 字体获取、常见的视觉字体等\n- [x] `UIColor` 色值获取、常见的视觉色值等\n- [x] `CALayer` 链式属性、常见的动画等\n- [x] `UILabel` 链式属性、富文本设置、获取文本大小等 \n- [x] `UIControl` 链式属性、事件点击、扩大响应区域等 \n- [x] `UIButton` 链式属性、按钮图片、文字的几种布局等 \n- [x] `UIView` 链式属性、形变、阴影圆角、截屏、事件点击、添加手势事件、常见的动画等\n- [x] `UITextView` 链式属性、占位符、限制输入字数、高度根据内容自动变化等\n- [x] `UITextField` 链式属性、左右视图、文本格式化等\n- [x] `UIImageView`  `UIDatePicker`  `UIProgressView`  链式属性 \n- [x] `UIImage` 链式属性、合成渐变水印、裁剪缩放翻转、抠图滤镜马赛克、二维码条形码、Gif 图加载等 \n- [x] `UIScrollView` 链式属性、适配 `iOS11` 以上、滚动事件等 \n- [x] `UITableView` 链式属性、适配 `iOS11` 以上、初始化扩展等 \n- [x] `UICollectionView` 链式属性、初始化扩展等\n- [x] `UIBarButtonItem` 初始化 `item` 等\n- [x] `UINavigationBar` 链式属性、导航栏下划线、标题属性、左右 `item` 属性等\n- [x] `UIViewController` 链式属性、是否模态、返回指定控制器、跳转到指定控制器、栈顶控制器等\n- [x] `UIGestureRecognizer` 链式属性、手势事件等扩展  \n\n### `SnapKitEx` 文件\n- [x] `SnapKit` 对数组的扩展，针对数组控件等间隔、等宽高、九空格等不同场景下的布局 \n\n### `Utils` 文件\n- [x] 命名空间、日志输出等\n\n## 安装方式 \n\n### CocoaPods\n\n```ruby\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget 'TargetName' do\n\n# 下载所有的库文件\npod 'KeenExtension'\n\n# 仅下载系统库控件的扩展\n# pod 'KeenExtension', :subspecs =\u003e ['Extensions']\n\n# 仅下载 SnapKit 对数组的支持\n# pod 'KeenExtension', :subspecs =\u003e ['SnapKitEx']\n\nend\n```\n\u003e `Swift` 版本要求 `5.0+`\n\n## Contact Me\n\nQQ: 2209868966\n邮箱: chongzone@163.com\n\n\u003e 若在使用过程中遇到什么问题, 请 `issues` 我, 看到之后会尽快修复 \n\n## License\n\nKeenExtension is available under the MIT license. [See the LICENSE](https://github.com/chongzone/KeenExtension/blob/main/LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchongzone%2Fkeenextension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchongzone%2Fkeenextension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchongzone%2Fkeenextension/lists"}