Merge pull request #2216 from omnivore-app/fix/ios-font-size-selector

Allow single px font size adjustment on iOS
This commit is contained in:
Jackson Harper
2023-05-18 20:18:48 +08:00
committed by GitHub

View File

@ -204,7 +204,7 @@ public enum WebFont: String, CaseIterable {
}, label: { Image(systemName: "textformat.size.smaller") })
.frame(width: 25, height: 25, alignment: .center)
CustomSlider(value: $storedFontSize, minValue: 10, maxValue: 28) { _ in
if storedFontSize % 2 == 0 {
if storedFontSize % 1 == 0 {
updateReaderPreferences()
}
}