From 7e10467d45da82f78adea7d6c17e9058af818354 Mon Sep 17 00:00:00 2001 From: Dominic Go <18517029+dominicstop@users.noreply.github.com> Date: Fri, 31 Mar 2023 18:35:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=81=20Cleanup:=20`RNIModalView.isModal?= =?UTF-8?q?InPresentation`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../React Native/RNIModalView/RNIModalView.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ios/src_library/React Native/RNIModalView/RNIModalView.swift b/ios/src_library/React Native/RNIModalView/RNIModalView.swift index d4bf3a0c..e64b2481 100644 --- a/ios/src_library/React Native/RNIModalView/RNIModalView.swift +++ b/ios/src_library/React Native/RNIModalView/RNIModalView.swift @@ -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 } };