Comments (3)
没看懂这个的使用场景 @kemchenj
from ios-weekly.
@lacklock 这一个我仔细想想,可能作用也不是很大,只能说是后端用 CN,US 之类的简写时,可以少写一个 fullName
属性,直接写为枚举值的名字而已
enum Country: String {
case china = "CN"
case canada = "CA"
}
print("\(Country.china)") // "china"
这一个技巧算是可有可无,但国内好像没有类似于 Swift Tips 这个项目,而且这个项目里一些技巧还是挺不错的,我觉得可以改成介绍这个项目
from ios-weekly.
跟前面 iOS Tips 小集类似的项目,不同的是这个项目里讲的是一些 Swift 的小 Tips,里面 #7,#22 等技巧我都有实际用于项目中,非常推荐大家看一下
from ios-weekly.
Related Issues (20)
- What’s the difference between any and Any? HOT 1
- Actor reentrancy in Swift explained
- RxSwift 6 更新了什么
- Flutter 之 HTTP3/QUIC 和 Cronet 你了解过吗?
- CopilotForXcode
- periphery
- SwiftUI: Custom View Transition(Navigation) With Matched Geometry
- difftastic
- 每个程序员都应该了解的硬件知识
- 【Just For Fun】C - 宏开发 - 真正按照参数数目展开不同的宏、延迟展开
- SwiftSecurity: Modern Swift framework for Keychain API.
- 从汇编代码探究 NSClassFromString 实现
- 彻底弄懂 Linux 下的文件描述符(fd)
- 淘系两年半A/B实验经历,聊聊我理解的“科学实验” HOT 3
- Now I’m worried our metrics aren’t correct! with special guest Holly Borla HOT 1
- Scaling ChatGPT: Five Real-World Engineering Challenges
- The Sound of Software
- Is Dynamic Isolation Bad?
- ICP 备案版本号绕过
- 戴铭的开发小册子6.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-weekly.