Skip to content

Commit

Permalink
💫 Update: RNIModalView.enableSwipeGesture
Browse files Browse the repository at this point in the history
Related: TODO:2023-03-04-06-34-28 - Library Native Cleanup

Summary: Re-write for readability.
  • Loading branch information
dominicstop committed Mar 17, 2023
1 parent 9babbc4 commit 5ef2cad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ios/src_library/React Native/RNIModalView/RNIModalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,10 @@ class RNIModalView: UIView {
/// disable swipe gesture recognizer for this modal
@objc var enableSwipeGesture: Bool = true {
didSet {
guard self.enableSwipeGesture != oldValue else { return };
self.enableSwipeGesture(self.enableSwipeGesture);
let newValue = self.enableSwipeGesture;
guard newValue != oldValue else { return };

self.enableSwipeGesture(newValue);
}
};

Expand Down

0 comments on commit 5ef2cad

Please sign in to comment.