Skip to content

Commit f50fa03

Browse files
authored
updated example
1 parent 3b28e74 commit f50fa03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Make sure to read [Apple's API Design Guidelines](https://swift.org/documentatio
44

55
Specifics from these guidelines + additional remarks are mentioned below.
66

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

99
## Table Of Contents
1010

@@ -192,16 +192,16 @@ class URLFinder {
192192
```swift
193193
class MyClassName {
194194
// PREFERRED
195-
enum AccessibilityIdentifier {
196-
static let pirateButton = "pirate_button"
195+
enum Measurement {
196+
static let buttonPadding: CGFloat = 20.0
197197
}
198198
enum SillyMathConstant {
199199
static let indianaPi = 3
200200
}
201201
static let shared = MyClassName()
202202

203203
// NOT PREFERRED
204-
static let kPirateButtonAccessibilityIdentifier = "pirate_button"
204+
static let kButtonPadding: CGFloat = 20.0
205205
enum SillyMath {
206206
static let indianaPi = 3
207207
}

0 commit comments

Comments
 (0)