@momo-kits/native-kits 0.162.48-debug → 0.162.49-debug
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/compose/build.gradle.kts
CHANGED
|
@@ -90,7 +90,9 @@ internal fun HeaderBackground() {
|
|
|
90
90
|
.fillMaxWidth()
|
|
91
91
|
.then(if (fillsBox && !theme.isHeaderImage()) Modifier.fillMaxHeight() else Modifier.height(maxHeight))
|
|
92
92
|
.conditional(!theme.isHeaderImage()) {
|
|
93
|
-
|
|
93
|
+
// RN spans the gradient over 375:154 and clips it, so a default header shows only its top
|
|
94
|
+
val endY = if (fillsBox) Float.POSITIVE_INFINITY else with(density) { maxHeight.toPx() }
|
|
95
|
+
background(Brush.verticalGradient(colors = listOf(color, backgroundColor), endY = endY))
|
|
94
96
|
}
|
|
95
97
|
){
|
|
96
98
|
if (!theme.isHeaderImage()) return@Box
|
package/gradle.properties
CHANGED
|
@@ -4,16 +4,14 @@ import Foundation
|
|
|
4
4
|
private final class MoMoUIKitsBundleToken {}
|
|
5
5
|
|
|
6
6
|
enum MoMoUIKitsResources {
|
|
7
|
+
|
|
7
8
|
static let bundle: Bundle = {
|
|
8
9
|
let bundleName = "MoMoUIKitsResources"
|
|
9
10
|
let tokenBundle = Bundle(for: MoMoUIKitsBundleToken.self)
|
|
10
|
-
let frameworkBundle = Bundle(identifier: "org.cocoapods.MoMoUIKits")
|
|
11
11
|
let candidates = [
|
|
12
12
|
Bundle.main.resourceURL,
|
|
13
13
|
tokenBundle.resourceURL,
|
|
14
|
-
tokenBundle.bundleURL
|
|
15
|
-
frameworkBundle?.resourceURL,
|
|
16
|
-
frameworkBundle?.bundleURL
|
|
14
|
+
tokenBundle.bundleURL
|
|
17
15
|
]
|
|
18
16
|
|
|
19
17
|
for candidate in candidates {
|