Skip to content

Commit 2ec95bc

Browse files
authored
merged 3.7.4 into 3.1.14
1 parent 36c85fc commit 2ec95bc

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

README.md

Lines changed: 3 additions & 12 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 2.2 on August 30th, 2016.
7+
This guide was last updated for Swift 2.2 on August 31st, 2016.
88

99
## Table Of Contents
1010

@@ -469,7 +469,7 @@ do {
469469
}
470470
```
471471

472-
* **3.1.14** Prefer `static` to `class` when declaring a function that is associated with a class as opposed to an instance of that class. Only use `class` if you specifically need the functionality of overriding that function in a subclass, though consider using a `protocol` to achieve this instead.
472+
* **3.1.14** Prefer `static` to `class` when declaring a function or property that is associated with a class as opposed to an instance of that class. Only use `class` if you specifically need the functionality of overriding that function or property in a subclass, though consider using a `protocol` to achieve this instead.
473473

474474
* **3.1.15** If you have a function that takes no arguments, has no side effects, and returns some object or value, prefer using a computed property instead.
475475

@@ -650,16 +650,7 @@ var computedProperty: String {
650650
}
651651
```
652652

653-
* **3.7.4** Create class constants as `static` for any strings or constant values.
654-
655-
```swift
656-
class MyTableViewCell: UITableViewCell {
657-
static let kReuseIdentifier = String(MyTableViewCell)
658-
static let kCellHeight: CGFloat = 80.0
659-
}
660-
```
661-
662-
* **3.7.5** You can declare a singleton property as follows:
653+
* **3.7.4** You can declare a singleton property as follows:
663654

664655
```swift
665656
class PirateManager {

0 commit comments

Comments
 (0)