Skip to content

Commit

Permalink
rename delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Jan 10, 2024
1 parent 703307c commit b8e4bf7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions RevenueCatUI/UIKit/PaywallViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public class PaywallViewController: UIViewController {
self.delegate?.paywallViewController?(self, didFinishRestoringWith: customerInfo)
}
.onSizeChange { [weak self] in
self?.delegate?.paywallViewControlleSizeDidChange?($0)
guard let self = self else { return }
self.delegate?.paywallViewController?(self, didChangeSize: $0)
}

return .init(rootView: view)
Expand Down Expand Up @@ -136,8 +137,10 @@ public protocol PaywallViewControllerDelegate: AnyObject {
@objc(paywallViewControllerWasDismissed:)
optional func paywallViewControllerWasDismissed(_ controller: PaywallViewController)

@objc(paywallViewControlleSizeDidChange:)
optional func paywallViewControlleSizeDidChange(_ size: CGSize)
/// For internal use only.
@objc(paywallViewControlle:didChangeSize:)
optional func paywallViewController(_ controller: PaywallViewController,
didChangeSize size: CGSize)

}

Expand Down

0 comments on commit b8e4bf7

Please sign in to comment.