cleanip.io 字标与文字按基线对齐时对齐字母基线,不再被 p 的下伸部分顶高

This commit is contained in:
gentpan committed 2026-09-17 21:46:35 +05:00
1 parent 33baa71470
commit 823a3cbe3f
1 file changed
+3
@@ -239,6 +239,9 @@ struct CleanIPLogo: View {
}
}
.frame(width: width, height: height)
// 字母落在画布 y = 78 处(下面是 p 的下伸部分):与文字按基线对齐时对齐这条线,字标才和文字在同一水平线上
.alignmentGuide(.firstTextBaseline) { $0.height * 78 / 98 }
.alignmentGuide(.lastTextBaseline) { $0.height * 78 / 98 }
.accessibilityLabel("cleanip.io")
}
}