@momo-kits/native-kits 0.112.1-beta.13 → 0.112.1-beta.14
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.
|
@@ -68,7 +68,7 @@ val ApplicationContext = staticCompositionLocalOf<MiniAppContext?> {
|
|
|
68
68
|
fun ApplicationContainer(
|
|
69
69
|
theme: Theme = defaultTheme,
|
|
70
70
|
composeApi: ComposeApi? = null,
|
|
71
|
-
statusBarHeight: Dp
|
|
71
|
+
statusBarHeight: Dp?,
|
|
72
72
|
applicationContext: MiniAppContext? = null,
|
|
73
73
|
content: @Composable () -> Unit,
|
|
74
74
|
) {
|
|
@@ -100,12 +100,14 @@ fun ApplicationContainer(
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
val appStatusBarHeight = statusBarHeight ?: getStatusBarHeight()
|
|
104
|
+
|
|
103
105
|
disableOverscroll()
|
|
104
106
|
CompositionLocalProvider(
|
|
105
107
|
AppTheme provides appTheme,
|
|
106
108
|
PlatformApi provides composeApi,
|
|
107
109
|
AppNavigator provides Navigator(),
|
|
108
|
-
AppStatusBar provides
|
|
110
|
+
AppStatusBar provides appStatusBarHeight,
|
|
109
111
|
ApplicationContext provides applicationContext,
|
|
110
112
|
) {
|
|
111
113
|
content()
|
package/ios/Icon/Icon.swift
CHANGED
|
@@ -43,11 +43,11 @@ public struct Icon: View {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
public var body: some View {
|
|
46
|
-
|
|
47
|
-
ImageView(
|
|
46
|
+
if let uri = iconSources[source]?.uri {
|
|
47
|
+
ImageView(uri)
|
|
48
48
|
.frame(width: size, height: size)
|
|
49
49
|
.foregroundColor(color)
|
|
50
|
-
|
|
50
|
+
}
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|