Open joeydambrosio opened 7 years ago
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 加这里 } }