FWFramework
中文
教程
iOS 开发框架,方便 iOS 开发,兼容 OC 和 Swift。
本框架中的所有 Swizzles 默认不会生效,且不会影响现有项目。它们需要手动开启或调用才生效。此库已在正式项目中使用,并将继续在未来维护和扩展。欢迎所有人使用并共同提出宝贵意见。
安装
推荐使用 CocoaPods 或 Swift 包管理器来安装并自动管理依赖。对于手动导入,请参阅示例项目的配置。
CocoaPods
此框架支持 CocoaPods,以下为 Podfile 示例
platform :ios, '11.0'
use_frameworks!
target 'Example' do
# Import the default subspecs
pod 'FWFramework'
# Import the specified subspecs, see the podspec file for the list of subspecs
# pod 'FWFramework', :subspecs => ['FWFramework', 'FWSwiftUI']
end
Swift Package Manager
此框架支持 Swift 包管理器,只需要添加和检查所需模块,以下为 Package 示例
https://github.com/lszzy/FWFramework.git
# Check and import the default submodule
import FWFramework
# Check and import the specified sub-modules, see the Package.swift file for the list of sub-modules
import FWSwiftUI
Api
文档位于 docs 文件夹中,只需在浏览器中打开 index.html 文件,或运行 docs.sh 脚本来自动生成 Api 文档。
Changelog
由于此框架不断升级、优化和扩展新功能,每个版本的 API 可能会有所改变。如果升级新版本时报告编译错误,解决方案如下
1. Just change to specify the pod version number to import, the recommended way, does not affect the project progress, upgrade to the new version only when you have time, example: pod 'FWFramework', '4.14.1'
2. Upgrade to the new version, please pay attention to the version update log. Obsolete Api will be migrated to the Deprecated submodule as appropriate, and will be deleted in subsequent versions
供应商
此框架使用了大量第三方库。感谢所有第三方库的作者。这里不一一列出它们。详细信息,请参考源文件的相应链接。
In the introduction of third-party libraries, in order to be compatible with existing project pod dependencies, as well as to customize changes and bug fixes of third-party libraries, and to facilitate subsequent maintenance, this framework uniformly modified the FW class prefix and fw method prefix. If there is any inconvenience during use, Please understand.
If you are the author of a third-party open source library, if this library violates your rights, please let me know, and I will immediately remove the use of the third-party open source library.