swift-style-guide icon indicating copy to clipboard operation
swift-style-guide copied to clipboard

A style guide for Swift.

Results 4 swift-style-guide issues
Sort by recently updated
recently updated
newest added

Write a rule about `guard` and `defer` as Swift 2 features to early return in a function. Return early in a function is the preferred behavior.

Add a rationale about nil checking to explain why we need to handle optionals. Also mention early returns in a function section.

Discussion emerged as to how we should handle constants in Swift. Should they be in enums? Structs? Globals? Some other thing we're not aware of? Do we have any resources...

enhancement
help wanted

Could be a clickable image/button (eg a SwiftLint checkmark) that would link to the SwiftLint section of the guide, itself linking to the SwiftLint fork repo Ideally it would be...