diff --git a/LaunchKit/Classes/LaunchKit.h b/LaunchKit/Classes/LaunchKit.h index 2ffdae5..518714e 100644 --- a/LaunchKit/Classes/LaunchKit.h +++ b/LaunchKit/Classes/LaunchKit.h @@ -239,29 +239,6 @@ typedef void (^LKUIManifestRefreshHandler)(); completion:(nullable LKAppReviewCardCompletionHandler)completion; -#pragma mark - Remote UI - -/*! - @method - - @abstract - Presents loaded remote UI on behalf of the presentingViewController, handling its dismissal. - - @discussion - Once remote UI is loaded (see -loadRemoteUIWithId:completion:), you should pass it to this method to present it. - - @param viewController The LaunchKit view controller that is generally loaded on demand - @param presentingViewController The view controller to present the remote UI from. - @param animated Whether to animate the modal presentation - @param dismissalHandler When the remote UI has finished its flow, the UI is dismissed, and then this handler - is called, in case you want to take action after its dismissal. - */ -- (void)presentRemoteUIViewController:(nonnull LKViewController *)viewController - fromViewController:(nonnull UIViewController *)presentingViewController - animated:(BOOL)animated - dismissalHandler:(nullable LKRemoteUIDismissalHandler)dismissalHandler; - - #pragma mark - Debugging (for LaunchKit developers :D) /*! diff --git a/LaunchKit/Classes/UI/LKUIManager.h b/LaunchKit/Classes/UI/LKUIManager.h index aa1cab3..78b93e0 100644 --- a/LaunchKit/Classes/UI/LKUIManager.h +++ b/LaunchKit/Classes/UI/LKUIManager.h @@ -63,6 +63,23 @@ typedef void (^LKAppReviewCardCompletionHandler)(LKViewControllerFlowResult flow - (void)loadRemoteUIWithId:(nonnull NSString *)remoteUIId completion:(nullable LKRemoteUILoadHandler)completion; #pragma mark - Presenting UI + + +/*! + @method + + @abstract + Presents loaded remote UI on behalf of the presentingViewController, handling its dismissal. + + @discussion + Once remote UI is loaded (see -loadRemoteUIWithId:completion:), you should pass it to this method to present it. + + @param viewController The LaunchKit view controller that is generally loaded on demand + @param presentingViewController The view controller to present the remote UI from. + @param animated Whether to animate the modal presentation + @param dismissalHandler When the remote UI has finished its flow, the UI is dismissed, and then this handler + is called, in case you want to take action after its dismissal. + */ - (void)presentRemoteUIViewController:(nonnull LKViewController *)viewController fromViewController:(nonnull UIViewController *)presentingViewController animated:(BOOL)animated