diff --git a/Examples/Sources/CounterExample/CounterApp.swift b/Examples/Sources/CounterExample/CounterApp.swift index 264ff9e0956..9229dc3576a 100644 --- a/Examples/Sources/CounterExample/CounterApp.swift +++ b/Examples/Sources/CounterExample/CounterApp.swift @@ -18,6 +18,11 @@ struct CounterApp: App { count -= 1 } Text("Count: \(count)") + .overlay { + GeometryReader { proxy in + Color.blue.opacity(0.5) + } + } Button("+") { count += 1 } diff --git a/Sources/UIKitBackend/UIKitBackend+Passive.swift b/Sources/UIKitBackend/UIKitBackend+Passive.swift index 67f9b2474d5..a90b7962aee 100644 --- a/Sources/UIKitBackend/UIKitBackend+Passive.swift +++ b/Sources/UIKitBackend/UIKitBackend+Passive.swift @@ -131,6 +131,7 @@ final class CustomTextView: UIView { textContainer = NSTextContainer(size: frame.size) textContainer.lineBreakMode = .byTruncatingTail + textContainer.lineFragmentPadding = 0 layoutManager.addTextContainer(textContainer) super.init(frame: frame)