Skip to content

Commit

Permalink
💫 Update: RNIModalSheetViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Sep 27, 2024
1 parent 2ae97ff commit 80f7594
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ios/RNIModalSheetView/RNIModalSheetViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
//

import UIKit
import DGSwiftUtilities
import react_native_ios_utilities

#if !RCT_NEW_ARCH_ENABLED
import React
#endif


open class RNIModalSheetViewController: UIViewController {
open class RNIModalSheetViewController: ModalSheetViewControllerLifecycleNotifier {

public var shouldTriggerDefaultCleanup = true;

Expand Down Expand Up @@ -43,6 +44,7 @@ open class RNIModalSheetViewController: UIViewController {
// ---------------------------------

public override func viewDidLoad() {
super.viewDidLoad();

guard let mainSheetContentParent = self.mainSheetContentParent,
let mainSheetContent = mainSheetContentParent.contentDelegate as? RNIWrapperViewContent
Expand Down Expand Up @@ -90,7 +92,9 @@ open class RNIModalSheetViewController: UIViewController {
};
};

public override func viewDidLayoutSubviews() {
public override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews();

guard let mainSheetContentParent = self.mainSheetContentParent else {
return;
};
Expand Down

0 comments on commit 80f7594

Please sign in to comment.