@momo-kits/native-kits 0.162.38-debug → 0.162.39-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.
@@ -40,7 +40,7 @@ kotlin {
40
40
  }
41
41
 
42
42
  cocoapods {
43
- version = "0.162.38-debug"
43
+ version = "0.162.39-debug"
44
44
  summary = "IOS Shared module"
45
45
  homepage = "https://momo.vn"
46
46
  ios.deploymentTarget = "15.0"
@@ -67,11 +67,10 @@ internal fun Header(onBackHandler: (() -> Unit)? = null) {
67
67
  else -> HEADER_HEIGHT
68
68
  }
69
69
  val opacity by animateFloatAsState(
70
- targetValue = if (options.headerType is HeaderType.Transparent) {
71
- 0f
72
- } else {
73
- (scrollState.value / opacityHeight.toFloat())
74
- .coerceIn(0f, 1f)
70
+ targetValue = when {
71
+ options.headerType is HeaderType.Transparent -> 0f
72
+ opacityHeight <= 0 -> if (scrollState.value > 0) 1f else 0f
73
+ else -> (scrollState.value / opacityHeight.toFloat()).coerceIn(0f, 1f)
75
74
  }
76
75
  )
77
76
 
package/gradle.properties CHANGED
@@ -18,7 +18,7 @@ kotlin.apple.xcodeCompatibility.nowarn=true
18
18
  name="ComposeKits"
19
19
  group=vn.momo.kits
20
20
  artifact.id=kits
21
- version=0.162.38
21
+ version=0.162.39
22
22
 
23
23
  repo=GitLab
24
24
  url=https://gitlab.mservice.com.vn/api/v4/projects/5400/packages/maven
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.162.38-debug",
3
+ "version": "0.162.39-debug",
4
4
  "private": false,
5
5
  "dependeNavigationncies": {},
6
6
  "devDependencies": {},