diff --git a/ios/src_library/React Native/RNIModal/RNIModalPresentationState.swift b/ios/src_library/React Native/RNIModal/RNIModalPresentationState.swift index 17013778..667a351e 100644 --- a/ios/src_library/React Native/RNIModal/RNIModalPresentationState.swift +++ b/ios/src_library/React Native/RNIModal/RNIModalPresentationState.swift @@ -89,12 +89,21 @@ public enum RNIModalPresentationState: String { public struct RNIModalPresentationStateMachine { + // MARK: - Properties + // ------------------ + var state: RNIModalPresentationState = .INITIAL; var statePrev: RNIModalPresentationState = .INITIAL; + // MARK: - Properties - Completion Handlers + // ---------------------------------------- + var onDismissWillCancel: (() -> Void)?; var onDismissDidCancel: (() -> Void)?; + // MARK: - Functions + // ----------------- + mutating func set(state nextState: RNIModalPresentationState){ let prevState = self.state; self.statePrev = prevState;