Skip to content

Commit

Permalink
Fix Styling with Functions for Xcode 10
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Jul 22, 2018
1 parent 0f01480 commit e2f3dcb
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -88,23 +88,23 @@ class BaseButton: UIButton {
}
}

class FilledButton: RoundedButton {
class RoundedButton: BaseButton {
override init(frame: CGRect) {
super.init(frame: frame)
self.backgroundColor = .black
self.tintColor = .white
self.clipsToBounds = true
self.layer.cornerRadius = 6
}

required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}

class RoundedButton: BaseButton {
class FilledButton: RoundedButton {
override init(frame: CGRect) {
super.init(frame: frame)
self.clipsToBounds = true
self.layer.cornerRadius = 6
self.backgroundColor = .black
self.tintColor = .white
}

required init?(coder aDecoder: NSCoder) {
Expand Down

0 comments on commit e2f3dcb

Please sign in to comment.