-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Labels
Description
Create a README.CN.md in Chinese.
Chinese is the #1 spoken language in the world and I'd love to have DefaultsKit be more inclusive, unfortunately I don't speak Chinese. If you know Chinese, and would like to help out, I'd be eternally grateful.
Thank you 🙏
hugolundin, AStong, koploop, Bujingxian and zengxs
Metadata
Metadata
Assignees
Labels
Projects
Milestone
Relationships
Development
Select code repository
Activity
linbx08 commentedon Aug 28, 2017
什么是DefaultsKit
DefaultsKit 是利用Swift4强大的Codable,在UserDefaults基础上提供一层简单且强大的封装。它仅使用少于70行代码来实现这些功能。
使用说明
第一步:
实例化或者使用单例来初始化
第二步:
判断某个键(key)是否含有某个值(value)
if defaults.has(key) {
// 书写你自己的代码
}
复杂的对象存储
一个遵循Codable协议的复杂对象需要存储
嵌套对象的存储
只要是遵循Codable协议,你也可以使用嵌套对象
linbx08 commentedon Aug 28, 2017
hello, That was my understanding. hope can help you. thanks.
nmdias commentedon Aug 28, 2017
Ah Fantastic! Thank you so much 🙏
dadpp commentedon Aug 28, 2017
厉害了 大佬
nmdias commentedon Aug 28, 2017
I've added the Chinese translations kindly provided by @linbx08 to the README.zh-CN.md file. Thank you again!
hewigovens commentedon Aug 29, 2017
I made some refinements and here is the pull request: #3
asd8855 commentedon Dec 6, 2017
cool
Mase9527 commentedon Jan 19, 2018
It`s very nice