Skip to content

Commit 60ebf5d

Browse files
committed
.
1 parent 9df0ead commit 60ebf5d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/Extension/UIKit/UILabel/UILabelExtension.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,10 @@ fileprivate extension UILabel {
294294
point.y -= (bounds.height - height) / 2
295295

296296
// Debug
297-
subviews.filter({ $0 is DebugView }).forEach({ $0.removeFromSuperview() })
298-
let view = DebugView(frame: .init(x: 0, y: (bounds.height - height) / 2, width: bounds.width, height: height))
299-
view.draw = { layoutManager.drawGlyphs(forGlyphRange: .init(location: 0, length: textStorage.length), at: .zero) }
300-
addSubview(view)
297+
// subviews.filter({ $0 is DebugView }).forEach({ $0.removeFromSuperview() })
298+
// let view = DebugView(frame: .init(x: 0, y: (bounds.height - height) / 2, width: bounds.width, height: height))
299+
// view.draw = { layoutManager.drawGlyphs(forGlyphRange: .init(location: 0, length: textStorage.length), at: .zero) }
300+
// addSubview(view)
301301

302302
// 获取字形下标
303303
var fraction: CGFloat = 0

0 commit comments

Comments
 (0)