Turn on strict memory safety for the macOS app
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user