Adds basic MyAppsViewController implementation

This commit is contained in:
Riley Testut
2019-05-20 21:26:01 +02:00
parent c3a8abf8dc
commit 42734f2004
9 changed files with 263 additions and 45 deletions

View File

@@ -41,12 +41,25 @@ class Button: UIButton
self.update()
}
}
override var isEnabled: Bool {
didSet {
self.update()
}
}
}
private extension Button
{
func update()
{
self.backgroundColor = self.tintColor
if self.isEnabled
{
self.backgroundColor = self.tintColor
}
else
{
self.backgroundColor = .lightGray
}
}
}