Skip to content

Commit 9399dbb

Browse files
committed
clip shadows view
1 parent 2821930 commit 9399dbb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

playgrounds/ComposeUIPlayground-iOS/ComposeUIPlayground-iOS/PlaygroundViews/Playground+ShadowView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,15 @@ extension Playground {
413413

414414
Spacer(height: 32)
415415
}
416-
417416
.frame(.flexible)
418417
}
419418

419+
override init(frame: CGRect) {
420+
super.init(frame: frame)
421+
422+
clippingBehavior = .always
423+
}
424+
420425
override func animate() {
421426
size = CGSize(width: CGFloat.random(in: 50 ... 150), height: CGFloat.random(in: 50 ... 150))
422427
cornerRadius = CGFloat.random(in: 0 ... 25)

0 commit comments

Comments
 (0)