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)
- WhisperKit
- Plotting a Path to a Package Ecosystem without Data Race Errors
- Create Custom SF Symbols in Sketch
- Using TextRenderer to create highlighted text
- The State Of Meridian
- Swift Testing support for SnapshotTesting
- Mastering Animatable and AnimatablePair in SwiftUI
- Zoom transitions
- StreamUI
- Diffuse reflection UV computation tool
- Fix brew Error “The arm64 architecture is required for this software” on Apple Silicon Mac HOT 1
- Enable XcodeLLM on ChinaSKU Mac without disabling SIP
- Swift Protocol 背后的故事
- FixedWidthPDF HOT 1
- Introducing Entry macro in SwiftUI
- SwiftNet: Elegant approach on Networking using Combine and Swift Concurrency
- Charts
- Blend Modes in SwiftUI
- SE-0431: `@isolated(any)` Function Types HOT 3
- shorebird:支持上架应用商店的 flutter 热更新框架 HOT 2
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.