@lodev09/react-native-true-sheet 3.4.0-beta.2 → 3.4.1
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.
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# React Native True Sheet
|
|
2
2
|
|
|
3
|
-
[](https://github.com/lodev09/react-native-true-sheet/actions/workflows/checks.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/@lodev09/react-native-true-sheet)
|
|
5
5
|
|
|
6
6
|
> [!NOTE]
|
|
@@ -781,19 +781,26 @@
|
|
|
781
781
|
|
|
782
782
|
self.view.backgroundColor = self.backgroundColor;
|
|
783
783
|
|
|
784
|
-
|
|
784
|
+
NSString *effectiveBlurTint = self.blurTint;
|
|
785
|
+
if (@available(iOS 26.0, *)) {
|
|
786
|
+
// iOS 26+ has defualt liquid glass effect
|
|
787
|
+
} else if ((!effectiveBlurTint || effectiveBlurTint.length == 0) && !self.backgroundColor) {
|
|
788
|
+
effectiveBlurTint = @"system-material";
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
BOOL blurTintChanged = ![_blurView.blurTint isEqualToString:effectiveBlurTint];
|
|
785
792
|
|
|
786
793
|
if (_blurView && blurTintChanged) {
|
|
787
794
|
[_blurView removeFromSuperview];
|
|
788
795
|
_blurView = nil;
|
|
789
796
|
}
|
|
790
797
|
|
|
791
|
-
if (
|
|
798
|
+
if (effectiveBlurTint && effectiveBlurTint.length > 0) {
|
|
792
799
|
if (!_blurView) {
|
|
793
800
|
_blurView = [[TrueSheetBlurView alloc] init];
|
|
794
801
|
[_blurView addToView:self.view];
|
|
795
802
|
}
|
|
796
|
-
_blurView.blurTint =
|
|
803
|
+
_blurView.blurTint = effectiveBlurTint;
|
|
797
804
|
_blurView.blurIntensity = self.blurIntensity;
|
|
798
805
|
_blurView.blurInteraction = self.blurInteraction;
|
|
799
806
|
[_blurView applyBlurEffect];
|
package/package.json
CHANGED
package/src/TrueSheet.types.ts
CHANGED