Turn on strict memory safety for the macOS app

This commit is contained in:
Ian Gulliver
2026-10-17 09:57:28 -07:00
parent 3541abb1b1
commit 7452bd5936
9 changed files with 33 additions and 32 deletions
+7 -2
View File
@@ -277,8 +277,13 @@ struct DiagramLayout {
let size: CGSize
}
nonisolated(unsafe) private let labelFont = Fonts.ct(13)
nonisolated(unsafe) private let edgeFont = Fonts.ct(12)
private var labelFont: CTFont {
Fonts.ns(13) as CTFont
}
private var edgeFont: CTFont {
Fonts.ns(12) as CTFont
}
func textSize(_ text: String, _ font: CTFont) -> CGSize {
let lines = text.components(separatedBy: "\n")