Skip to content

Instantly share code, notes, and snippets.

View frankrausch's full-sized avatar

Frank Rausch frankrausch

View GitHub Profile
@frankrausch
frankrausch / Font+HighLegibilityFigures.swift
Created November 24, 2023 19:01
A Swift modifier to get the monospaced high legibility figures
import UIKit
import SwiftUI
extension View {
func highLegibilityFigures(forStyle style: UIFont.TextStyle, tableFigures: Bool = false) -> some View {
modifier(HighLegibilityFigures(style: style, tableFigures: tableFigures))
}
}
private struct HighLegibilityFigures: ViewModifier {