Skip to content

Commit d40ace8

Browse files
committed
Update Font.monospaced(_:) modifier with default parameter value
1 parent 37bb00d commit d40ace8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftCrossUI/Values/Font.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public struct Font: Hashable, Sendable {
9393
}
9494

9595
/// Selects whether or not to use the font's monospaced variant.
96-
public func monospaced(_ monospaced: Bool) -> Font {
96+
public func monospaced(_ monospaced: Bool = true) -> Font {
9797
var font = self
9898
if monospaced {
9999
font.overlay.design = .monospaced

0 commit comments

Comments
 (0)