diff --git a/Demo/FFPopup_Swift/Classes/Controllers/FFHomeViewController.swift b/Demo/FFPopup_Swift/Classes/Controllers/FFHomeViewController.swift index aa93c6b..7c41910 100644 --- a/Demo/FFPopup_Swift/Classes/Controllers/FFHomeViewController.swift +++ b/Demo/FFPopup_Swift/Classes/Controllers/FFHomeViewController.swift @@ -30,7 +30,7 @@ class FFHomeViewController: UIViewController { } @objc fileprivate func showPopup() { - let popup = FFPopup(contetnView: self.alertView, showType: .bounceIn, dismissType: .shrinkOut, maskType: .dimmed, dismissOnBackgroundTouch: true, dismissOnContentTouch: false) + let popup = FFPopup(contentView: self.alertView, showType: .bounceIn, dismissType: .shrinkOut, maskType: .dimmed, dismissOnBackgroundTouch: true, dismissOnContentTouch: false) let layout = FFPopupLayout(horizontal: .center, vertical: .center) popup.show(layout: layout) } diff --git a/FFPopup/Classes/FFPopup.h b/FFPopup/Classes/FFPopup.h index c17c8c2..81aaffe 100644 --- a/FFPopup/Classes/FFPopup.h +++ b/FFPopup/Classes/FFPopup.h @@ -213,7 +213,7 @@ NS_ASSUME_NONNULL_BEGIN dismissType:(FFPopupDismissType)dismissType maskType:(FFPopupMaskType)maskType dismissOnBackgroundTouch:(BOOL)shouldDismissOnBackgroundTouch - dismissOnContentTouch:(BOOL)shouldDismissOnContentTouch NS_SWIFT_NAME(init(contetnView:showType:dismissType:maskType:dismissOnBackgroundTouch:dismissOnContentTouch:)); + dismissOnContentTouch:(BOOL)shouldDismissOnContentTouch NS_SWIFT_NAME(init(contentView:showType:dismissType:maskType:dismissOnBackgroundTouch:dismissOnContentTouch:)); /** Dismiss all the popups in the app.