Punt font size till after 1.0.

This commit is contained in:
Brent Simmons
2018-02-11 18:58:01 -08:00
parent b43670b747
commit 84a8cb1a0e
2 changed files with 19 additions and 130 deletions

View File

@@ -135,14 +135,17 @@ private extension AppDefaults {
func fontSize(for key: String) -> FontSize {
var rawFontSize = int(for: key)
if rawFontSize < smallestFontSizeRawValue {
rawFontSize = smallestFontSizeRawValue
}
if rawFontSize > largestFontSizeRawValue {
rawFontSize = largestFontSizeRawValue
}
return FontSize(rawValue: rawFontSize)!
// Punted till after 1.0.
return .medium
// var rawFontSize = int(for: key)
// if rawFontSize < smallestFontSizeRawValue {
// rawFontSize = smallestFontSizeRawValue
// }
// if rawFontSize > largestFontSizeRawValue {
// rawFontSize = largestFontSizeRawValue
// }
// return FontSize(rawValue: rawFontSize)!
}
func setFontSize(for key: String, _ fontSize: FontSize) {