Skip to content

Commit

Permalink
💄 Gloss: Re-Organize Code
Browse files Browse the repository at this point in the history
Update RNIModalView.swift
Update RNIModalManager.swift
  • Loading branch information
dominicstop committed Apr 12, 2023
1 parent 5967b6b commit fa964f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
5 changes: 4 additions & 1 deletion ios/src_library/React Native/RNIModal/RNIModalManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ public class RNIModalManager {
self.modalInstanceDict[modal.synthesizedUUID] = modal;
};

public func getModalInstances(forWindow window: UIWindow) -> [any RNIModal] {
public func getModalInstances(
forWindow window: UIWindow
) -> [any RNIModal] {

return self.modalInstances.filter {
$0.window === window
};
Expand Down
13 changes: 5 additions & 8 deletions ios/src_library/React Native/RNIModalView/RNIModalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

import Foundation

public class RNIModalView: UIView, RNIIdentifiable,
RNIModalPresentationNotifying, RNIModalState,
RNIModalPresentation {
public class RNIModalView:
UIView, RNIIdentifiable, RNIModalPresentationNotifying, RNIModalState,
RNIModalPresentation {

public typealias CompletionHandler = (_ isSuccess: Bool, _ error: RNIModalViewError?) -> Void;

Expand All @@ -37,15 +37,12 @@ public class RNIModalView: UIView, RNIIdentifiable,
public weak var modalPresentationNotificationDelegate:
RNIModalPresentationNotifiable!;

// MARK: - Properties - RNIModalIdentity
// -------------------------------------
// MARK: - Properties - RNIModalState
// ----------------------------------

public var modalIndex: Int!;
public var modalIndexPrev: Int!;

// MARK: - Properties - RNIModalState
// ----------------------------------

public lazy var modalPresentationState = RNIModalPresentationStateMachine(
onDismissWillCancel: { [weak self] in
// no-op - TBA
Expand Down

0 comments on commit fa964f6

Please sign in to comment.