Skip to content

Commit

Permalink
Fix layout bug when trigger in any time.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Nov 1, 2023
1 parent 6bd8a8a commit 3c7acb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/AlertKit/Views/AlertAppleMusic16View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ public class AlertAppleMusic16View: UIView, AlertViewProtocol {

public override func layoutSubviews() {
super.layoutSubviews()

guard self.transform == .identity else { return }
backgroundView.frame = self.bounds

if let iconView = self.iconView {
Expand Down
1 change: 1 addition & 0 deletions Sources/AlertKit/Views/AlertAppleMusic17View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public class AlertAppleMusic17View: UIView, AlertViewProtocol {

public override func layoutSubviews() {
super.layoutSubviews()
guard self.transform == .identity else { return }
backgroundView.frame = self.bounds
layout(maxWidth: frame.width)
}
Expand Down

0 comments on commit 3c7acb2

Please sign in to comment.