Skip to content

Commit cf79196

Browse files
committed
Update naming
1 parent e69bec1 commit cf79196

20 files changed

+141
-150
lines changed

.gitignore

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,12 @@
1-
# Mac OS X
1+
# OS X temporary files
22
.DS_Store
3+
.Trashes
34

4-
# Xcode
5-
## Build generated
6-
build/
7-
DerivedData
8-
9-
## Various settings
10-
*.pbxuser
11-
!default.pbxuser
12-
*.mode1v3
13-
!default.mode1v3
14-
*.mode2v3
15-
!default.mode2v3
16-
*.perspectivev3
17-
!default.perspectivev3
18-
xcuserdata
19-
20-
## Other
21-
*.xccheckout
22-
*.moved-aside
23-
*.xcuserstate
24-
*.xcscmblueprint
25-
26-
## Obj-C/Swift specific
27-
*.hmap
28-
*.ipa
29-
30-
## Playgrounds
31-
timeline.xctimeline
32-
playground.xcworkspace
5+
# Xcode User settings
6+
xcuserdata/
337

348
# Swift Package Manager
35-
.build/
36-
.swiftpm/
37-
38-
# Carthage
39-
Carthage/Build
9+
Packages/
10+
Package.resolved
11+
*.xcodeproj
12+
.swiftpm
File renamed without changes.

Example/Controllers/DiffableTableController.swift renamed to Example iOS/Controllers/DiffableTableController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DiffableTableController: SPDiffableTableController, SPDiffableTableMediato
2121
return []
2222
}
2323

24-
internal func updateContent(animating: Bool) {
25-
diffableDataSource?.apply(content, animating: animating)
24+
internal func updateContent(animated: Bool) {
25+
diffableDataSource?.apply(content, animated: animated)
2626
}
2727
}

Example/Controllers/RootController.swift renamed to Example iOS/Controllers/RootController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ class RootController: DiffableTableController {
117117
private var switchOn: Bool = false {
118118
didSet {
119119
print("Switch is on: \(switchOn)")
120-
updateContent(animating: true)
120+
updateContent(animated: true)
121121
}
122122
}
123123

124124
private var stepperValue: Double = 0 {
125125
didSet {
126126
print("Stepper value is: \(stepperValue)")
127-
updateContent(animating: true)
127+
updateContent(animated: true)
128128
guard let indexPath = diffableDataSource?.indexPath(for: stepperValueIdentifier), let cell = tableView.cellForRow(at: indexPath) else { return }
129129
cell.detailTextLabel?.text = "\(Int(stepperValue))"
130130
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)