Skip to content

Commit

Permalink
updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarywojcik authored Jan 23, 2018
1 parent 3b28e74 commit f50fa03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Make sure to read [Apple's API Design Guidelines](https://swift.org/documentatio

Specifics from these guidelines + additional remarks are mentioned below.

This guide was last updated for Swift 3.0 on September 26th, 2017.
This guide was last updated for Swift 4.0 on January 23, 2018.

## Table Of Contents

Expand Down Expand Up @@ -192,16 +192,16 @@ class URLFinder {
```swift
class MyClassName {
// PREFERRED
enum AccessibilityIdentifier {
static let pirateButton = "pirate_button"
enum Measurement {
static let buttonPadding: CGFloat = 20.0
}
enum SillyMathConstant {
static let indianaPi = 3
}
static let shared = MyClassName()

// NOT PREFERRED
static let kPirateButtonAccessibilityIdentifier = "pirate_button"
static let kButtonPadding: CGFloat = 20.0
enum SillyMath {
static let indianaPi = 3
}
Expand Down

0 comments on commit f50fa03

Please sign in to comment.