@onekeyfe/react-native-native-sheet 3.0.148 → 3.0.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -373,7 +373,9 @@ private final class NativeSheetViewController: UIViewController,
|
|
|
373
373
|
min(max(self?.targetHeight ?? 1, 1), context.maximumDetentValue)
|
|
374
374
|
}
|
|
375
375
|
if #available(iOS 26.1, *) {
|
|
376
|
-
|
|
376
|
+
let backgroundEffect = UIColorEffect(color: backgroundColorValue)
|
|
377
|
+
sheet.backgroundEffect = backgroundEffect
|
|
378
|
+
detent.backgroundEffect = backgroundEffect
|
|
377
379
|
}
|
|
378
380
|
sheet.detents = [detent]
|
|
379
381
|
sheet.selectedDetentIdentifier = detentIdentifier
|
|
@@ -618,9 +620,8 @@ private final class NativeSheetViewController: UIViewController,
|
|
|
618
620
|
transitionCoordinator.animate(alongsideTransition: { _ in
|
|
619
621
|
animations()
|
|
620
622
|
}, completion: { context in
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
: targetAlpha
|
|
623
|
+
guard !context.isCancelled else { return }
|
|
624
|
+
dimmingView.alpha = targetAlpha
|
|
624
625
|
})
|
|
625
626
|
} else {
|
|
626
627
|
UIView.animate(
|
package/package.json
CHANGED