[AltStore] Revises AppViewController UI

- Fades in navigation bar as user scrolls down
- Displays version number, version date, and app size
This commit is contained in:
Riley Testut
2019-07-29 16:03:22 -07:00
parent 083f28896e
commit 52cb01c6c7
7 changed files with 332 additions and 122 deletions

View File

@@ -31,4 +31,16 @@ class NavigationBar: UINavigationBar
self.barTintColor = .white
self.shadowImage = UIImage()
}
override func layoutSubviews()
{
super.layoutSubviews()
// We can't easily shift just the back button up, so we shift the entire content view slightly.
for contentView in self.subviews
{
guard NSStringFromClass(type(of: contentView)).contains("ContentView") else { continue }
contentView.center.y -= 2
}
}
}