Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
joeydambrosio opened this issue Jul 8, 2017 · 1 comment

Comments

@joeydambrosio
Copy link

codew1

@Giggs123
Copy link

Giggs123 commented Dec 5, 2017

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 加这里
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants