This commit is contained in:
Isaac
2025-07-25 15:20:36 +02:00
parent 0d2cffb033
commit 46dad2eddc
12 changed files with 1001 additions and 112 deletions

View File

@@ -510,6 +510,8 @@ public final class ButtonComponent: Component {
animateIn = true
contentView.isUserInteractionEnabled = false
self.addSubview(contentView)
contentItem.view.parentState = state
}
let contentFrame = CGRect(origin: CGPoint(x: floorToScreenPixels((availableSize.width - contentSize.width) * 0.5), y: floorToScreenPixels((availableSize.height - contentSize.height) * 0.5)), size: contentSize)