ltebean/Live

[iOS] BUILD ERROR: Switch Must Be Exhaustive, consider adding a default clause.

joeydambrosio opened this issue · 1 comments

add default: break on your Switch Case

func liveSession(_ session: LFLiveSession?, liveStateDidChange state: LFLiveState) {
switch state {
case .error:
statusLabel.text = "error"
case .pending:
statusLabel.text = "pending"
case .ready:
statusLabel.text = "ready"
case.start:
statusLabel.text = "start"
case.stop:
statusLabel.text = "stop"
default: break // Add this line for Swift 3 加这里
}
}