diff --git a/Sources/TGCardViewController/TGCardViewController.swift b/Sources/TGCardViewController/TGCardViewController.swift index 831e7e6..5d0af6b 100644 --- a/Sources/TGCardViewController/TGCardViewController.swift +++ b/Sources/TGCardViewController/TGCardViewController.swift @@ -1627,7 +1627,7 @@ extension TGCardViewController { extension TGCardViewController { - public func toggleMapOverlays(show: Bool, animated: Bool = true) { + public func toggleMapOverlays(show: Bool, animated: Bool = true, completion: ((Bool) -> Void)? = nil) { // Map buttons self.allowFloatingViews = show if show { @@ -1651,6 +1651,8 @@ extension TGCardViewController { } else { self.mapViewController.additionalSafeAreaInsets = .zero } + } completion: { finished in + completion?(finished) } }