Skip to content

Commit 3c7acb2

Browse files
committed
Fix layout bug when trigger in any time.
1 parent 6bd8a8a commit 3c7acb2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Sources/AlertKit/Views/AlertAppleMusic16View.swift

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ public class AlertAppleMusic16View: UIView, AlertViewProtocol {
176176

177177
public override func layoutSubviews() {
178178
super.layoutSubviews()
179+
180+
guard self.transform == .identity else { return }
179181
backgroundView.frame = self.bounds
180182

181183
if let iconView = self.iconView {

Sources/AlertKit/Views/AlertAppleMusic17View.swift

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public class AlertAppleMusic17View: UIView, AlertViewProtocol {
182182

183183
public override func layoutSubviews() {
184184
super.layoutSubviews()
185+
guard self.transform == .identity else { return }
185186
backgroundView.frame = self.bounds
186187
layout(maxWidth: frame.width)
187188
}

0 commit comments

Comments
 (0)