Merge pull request #1538 from kielgillard/feedly-operation-string-keypaths

Use string-based key paths instead of Swift key paths…
This commit is contained in:
Brent Simmons 2020-01-05 17:09:14 -08:00 committed by GitHub
commit f84abb81e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,19 +94,19 @@ class FeedlyOperation: Operation {
let isFinishedDidChange = finished != isFinishedOperation let isFinishedDidChange = finished != isFinishedOperation
if isFinishedDidChange { if isFinishedDidChange {
willChangeValue(for: \.isFinished) willChangeValue(forKey: #keyPath(isFinished))
} }
if isExecutingDidChange { if isExecutingDidChange {
willChangeValue(for: \.isExecuting) willChangeValue(forKey: #keyPath(isExecuting))
} }
isExecutingOperation = executing isExecutingOperation = executing
isFinishedOperation = finished isFinishedOperation = finished
if isExecutingDidChange { if isExecutingDidChange {
didChangeValue(for: \.isExecuting) didChangeValue(forKey: #keyPath(isExecuting))
} }
if isFinishedDidChange { if isFinishedDidChange {
didChangeValue(for: \.isFinished) didChangeValue(forKey: #keyPath(isFinished))
} }
} }
} }