Skip to content

Commit

Permalink
Merge pull request #345 from pitt500/master
Browse files Browse the repository at this point in the history
Add swift style to Minimal Imports section
  • Loading branch information
rcritz authored Sep 6, 2021
2 parents 05ac6e8 + c9e48bb commit a9f6e8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -260,28 +260,28 @@ override func tableView(_ tableView: UITableView, numberOfRowsInSection section:
Import only the modules a source file requires. For example, don't import `UIKit` when importing `Foundation` will suffice. Likewise, don't import `Foundation` if you must import `UIKit`.

**Preferred**:
```
```swift
import UIKit
var view: UIView
var deviceModels: [String]
```

**Preferred**:
```
```swift
import Foundation
var deviceModels: [String]
```

**Not Preferred**:
```
```swift
import UIKit
import Foundation
var view: UIView
var deviceModels: [String]
```

**Not Preferred**:
```
```swift
import UIKit
var deviceModels: [String]
```
Expand Down

0 comments on commit a9f6e8d

Please sign in to comment.