damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

ExtraFonts.swift (707B)


      1 //
      2 //  ExtraFonts.swift
      3 //  damus
      4 //
      5 //  Created by Daniel D’Aquino on 2025-03-13.
      6 //
      7 import SwiftUI
      8 
      9 extension Font {
     10     // Note: When changing the font size accessibility setting, these styles only update after an app restart. It's a current limitation of this.
     11     
     12     static let veryLargeTitle: Font = .system(size: UIFont.preferredFont(forTextStyle: .largeTitle).pointSize * 1.5, weight: .bold) // Makes a bigger title while allowing for iOS dynamic font sizing to take effect
     13     static let veryVeryLargeTitle: Font = .system(size: UIFont.preferredFont(forTextStyle: .largeTitle).pointSize * 2.1, weight: .bold) // Makes a bigger title while allowing for iOS dynamic font sizing to take effect
     14 }
     15