Skip to content

Commit

Permalink
🛁 Cleanup: RNIModalView.isModalInPresentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Mar 31, 2023
1 parent e4803d2 commit 7e10467
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ios/src_library/React Native/RNIModalView/RNIModalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,11 @@ class RNIModalView: UIView, RNIIdentifiable, RNIModalFocusNotifying,

@objc var isModalInPresentation: Bool = false {
willSet {
if #available(iOS 13.0, *) {
guard let vc = self.modalVC else { return };
vc.isModalInPresentation = newValue
};
guard #available(iOS 13.0, *),
let vc = self.modalVC
else { return };

vc.isModalInPresentation = newValue
}
};

Expand Down

0 comments on commit 7e10467

Please sign in to comment.