Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
self.errorView = {
let view = UIView()
view.backgroundColor = UIColor.redColor()
view.addSubview({
self.errorLabel = {
let label = UILabel()
label.textAlignment = .Center
label.backgroundColor = UIColor.clearColor()
return label
}()
return self.errorLabel
}())
return view
}()
self.view.addSubview(self.errorView)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.