Skip to content

Commit

Permalink
Merge pull request #64 from jisu15-kim/fix/image-animation
Browse files Browse the repository at this point in the history
�Fix: Unexpected image animation - #59
  • Loading branch information
BastiaanJansen authored Dec 18, 2024
2 parents 5593e15 + c258754 commit e7d4dbd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/Toast/Toast.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,11 @@ public class Toast {
config.view?.addSubview(backgroundView) ?? ToastHelper.topController()?.view.addSubview(backgroundView)
}

config.view?.addSubview(view) ?? ToastHelper.topController()?.view.addSubview(view)
view.createView(for: self)
UIView.performWithoutAnimation {
config.view?.addSubview(view) ?? ToastHelper.topController()?.view.addSubview(view)
view.createView(for: self)
view.layoutIfNeeded()
}

multicast.invoke { $0.willShowToast(self) }

Expand Down

0 comments on commit e7d4dbd

Please sign in to comment.