@momo-kits/native-kits 0.169.9-debug → 0.169.10-beta.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.
Files changed (154) hide show
  1. package/ios/Input/InputSearch.swift +23 -6
  2. package/ios/Layout/HeaderLayout.swift +67 -0
  3. package/ios/Navigation/Component/Header.swift +31 -46
  4. package/ios/Navigation/Component/HeaderJourney.swift +2 -1
  5. package/ios/Navigation/Component/HeaderLocation.swift +2 -1
  6. package/ios/Navigation/Component/HeaderRight.swift +18 -15
  7. package/ios/Navigation/Component/HeaderUser.swift +2 -1
  8. package/ios/Navigation/Component/SideBar.swift +4 -13
  9. package/ios/Navigation/Navigation.swift +6 -1
  10. package/ios/Navigation/StackScreen.swift +25 -9
  11. package/ios/native-kits.podspec +1 -1
  12. package/ios-demo/MoMoUIKitsDemo.podspec +1 -1
  13. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AnimatedHeaderDemo.swift +11 -2
  14. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift +11 -0
  15. package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupNotifyDemo.swift +1 -1
  16. package/package.json +1 -1
  17. package/build.gradle.kts +0 -11
  18. package/compose/build.gradle.kts +0 -198
  19. package/compose/compose.podspec +0 -47
  20. package/compose/src/androidMain/kotlin/vn/momo/kits/const/HostFont.android.kt +0 -19
  21. package/compose/src/androidMain/kotlin/vn/momo/kits/navigation/ScrollToTop.android.kt +0 -6
  22. package/compose/src/androidMain/kotlin/vn/momo/kits/platform/BackGesture.android.kt +0 -12
  23. package/compose/src/androidMain/kotlin/vn/momo/kits/platform/OsFontScale.android.kt +0 -7
  24. package/compose/src/androidMain/kotlin/vn/momo/kits/platform/Platform.android.kt +0 -154
  25. package/compose/src/androidMain/kotlin/vn/momo/kits/platform/ReduceMotion.android.kt +0 -17
  26. package/compose/src/androidMain/kotlin/vn/momo/kits/platform/ReservedRegions.android.kt +0 -6
  27. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Context.kt +0 -110
  28. package/compose/src/commonMain/kotlin/vn/momo/kits/application/DesignSystemKits.kt +0 -62
  29. package/compose/src/commonMain/kotlin/vn/momo/kits/application/LiteScreen.kt +0 -1067
  30. package/compose/src/commonMain/kotlin/vn/momo/kits/application/Localize.kt +0 -267
  31. package/compose/src/commonMain/kotlin/vn/momo/kits/application/WidgetContainer.kt +0 -56
  32. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Avatar.kt +0 -157
  33. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Badge.kt +0 -82
  34. package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeDot.kt +0 -32
  35. package/compose/src/commonMain/kotlin/vn/momo/kits/components/BadgeRibbon.kt +0 -338
  36. package/compose/src/commonMain/kotlin/vn/momo/kits/components/BaselineView.kt +0 -175
  37. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Button.kt +0 -356
  38. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Carousel.kt +0 -115
  39. package/compose/src/commonMain/kotlin/vn/momo/kits/components/CheckBox.kt +0 -89
  40. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Chip.kt +0 -128
  41. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Collapse.kt +0 -209
  42. package/compose/src/commonMain/kotlin/vn/momo/kits/components/CupertinoOverscroll.kt +0 -482
  43. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Divider.kt +0 -49
  44. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Icon.kt +0 -86
  45. package/compose/src/commonMain/kotlin/vn/momo/kits/components/IconButton.kt +0 -125
  46. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Image.kt +0 -224
  47. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Information.kt +0 -137
  48. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Input.kt +0 -473
  49. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputDropDown.kt +0 -113
  50. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputMoney.kt +0 -263
  51. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputOTP.kt +0 -235
  52. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputPhoneNumber.kt +0 -228
  53. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputSearch.kt +0 -265
  54. package/compose/src/commonMain/kotlin/vn/momo/kits/components/InputTextArea.kt +0 -183
  55. package/compose/src/commonMain/kotlin/vn/momo/kits/components/LazyColumnWithBouncing.kt +0 -343
  56. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Loader.kt +0 -108
  57. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationDot.kt +0 -56
  58. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationNumber.kt +0 -40
  59. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationScroll.kt +0 -82
  60. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PaginationWhiteDot.kt +0 -39
  61. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupNotify.kt +0 -363
  62. package/compose/src/commonMain/kotlin/vn/momo/kits/components/PopupPromotion.kt +0 -108
  63. package/compose/src/commonMain/kotlin/vn/momo/kits/components/ProgressInfo.kt +0 -307
  64. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Radio.kt +0 -59
  65. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Rating.kt +0 -87
  66. package/compose/src/commonMain/kotlin/vn/momo/kits/components/ScaleSizeScope.kt +0 -21
  67. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Skeleton.kt +0 -88
  68. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Slider.kt +0 -306
  69. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Stepper.kt +0 -220
  70. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Steps.kt +0 -457
  71. package/compose/src/commonMain/kotlin/vn/momo/kits/components/SuggestAction.kt +0 -122
  72. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Swipe.kt +0 -205
  73. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Switch.kt +0 -89
  74. package/compose/src/commonMain/kotlin/vn/momo/kits/components/TabView.kt +0 -542
  75. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tag.kt +0 -86
  76. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Text.kt +0 -175
  77. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Title.kt +0 -201
  78. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Tooltip.kt +0 -498
  79. package/compose/src/commonMain/kotlin/vn/momo/kits/components/TrustBanner.kt +0 -176
  80. package/compose/src/commonMain/kotlin/vn/momo/kits/components/Uploader.kt +0 -182
  81. package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePicker.kt +0 -193
  82. package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerTypes.kt +0 -29
  83. package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/DateTimePickerUtils.kt +0 -210
  84. package/compose/src/commonMain/kotlin/vn/momo/kits/components/datetimepicker/WheelPicker.kt +0 -180
  85. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Colors.kt +0 -325
  86. package/compose/src/commonMain/kotlin/vn/momo/kits/const/HostFont.kt +0 -12
  87. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Radius.kt +0 -12
  88. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Spacing.kt +0 -16
  89. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Theme.kt +0 -194
  90. package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +0 -292
  91. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Card.kt +0 -54
  92. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Item.kt +0 -50
  93. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/ModalLayout.kt +0 -184
  94. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/ScreenLayout.kt +0 -316
  95. package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Section.kt +0 -41
  96. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/AutomationId.kt +0 -52
  97. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Clickable.kt +0 -66
  98. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Conditional.kt +0 -11
  99. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/DeprecatedModifier.kt +0 -104
  100. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Shadow.kt +0 -48
  101. package/compose/src/commonMain/kotlin/vn/momo/kits/modifier/Size.kt +0 -51
  102. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/BottomSheet.kt +0 -397
  103. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/HostBackGestureBridge.kt +0 -58
  104. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ModalScreen.kt +0 -153
  105. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigation.kt +0 -113
  106. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/NavigationContainer.kt +0 -205
  107. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigator.kt +0 -422
  108. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ScrollToTop.kt +0 -8
  109. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +0 -727
  110. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackTransition.kt +0 -148
  111. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/SwipeBackHaptic.kt +0 -35
  112. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTab.kt +0 -242
  113. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTabBar.kt +0 -400
  114. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/CurvedContainer.kt +0 -100
  115. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/DuoBarCompression.kt +0 -97
  116. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/DuoTabBar.kt +0 -207
  117. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/TabBarMetrics.kt +0 -132
  118. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/FloatingButton.kt +0 -167
  119. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/Header.kt +0 -456
  120. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderBackground.kt +0 -105
  121. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderJourney.kt +0 -106
  122. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderLocation.kt +0 -74
  123. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderRight.kt +0 -399
  124. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderTitle.kt +0 -39
  125. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderUser.kt +0 -363
  126. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/SideBar.kt +0 -204
  127. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/SnackBar.kt +0 -133
  128. package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/tracking/ScreenTracker.kt +0 -127
  129. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/BackGesture.kt +0 -12
  130. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/ComposeLottieAnimation.kt +0 -114
  131. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/OsFontScale.kt +0 -9
  132. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/Platform.kt +0 -76
  133. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/ReduceMotion.kt +0 -7
  134. package/compose/src/commonMain/kotlin/vn/momo/kits/platform/ReservedRegions.kt +0 -22
  135. package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Icons.kt +0 -1329
  136. package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Resources.kt +0 -55
  137. package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Tracking.kt +0 -15
  138. package/compose/src/commonMain/kotlin/vn/momo/kits/utils/Utils.kt +0 -118
  139. package/compose/src/iosMain/kotlin/vn/momo/kits/const/HostFont.ios.kt +0 -42
  140. package/compose/src/iosMain/kotlin/vn/momo/kits/navigation/HostBackGesture.ios.kt +0 -45
  141. package/compose/src/iosMain/kotlin/vn/momo/kits/navigation/ScrollToTop.ios.kt +0 -32
  142. package/compose/src/iosMain/kotlin/vn/momo/kits/platform/BackGesture.ios.kt +0 -38
  143. package/compose/src/iosMain/kotlin/vn/momo/kits/platform/OsFontScale.ios.kt +0 -66
  144. package/compose/src/iosMain/kotlin/vn/momo/kits/platform/Platform.ios.kt +0 -218
  145. package/compose/src/iosMain/kotlin/vn/momo/kits/platform/ReduceMotion.ios.kt +0 -48
  146. package/compose/src/iosMain/kotlin/vn/momo/kits/platform/ReservedRegions.ios.kt +0 -144
  147. package/gradle/libs.versions.toml +0 -67
  148. package/gradle/wrapper/gradle-wrapper.jar +0 -0
  149. package/gradle/wrapper/gradle-wrapper.properties +0 -8
  150. package/gradle.properties +0 -24
  151. package/gradlew +0 -252
  152. package/gradlew.bat +0 -94
  153. package/ios-demo/README.md +0 -120
  154. package/settings.gradle.kts +0 -64
@@ -1,5 +1,13 @@
1
1
  import SwiftUI
2
2
 
3
+ /// Body searches keep 36 / 24; the header search matches the 32pt header buttons.
4
+ enum InputSearchSize {
5
+ case `default`, header
6
+
7
+ var height: CGFloat { self == .header ? HeaderLayoutMetrics.searchHeight : 36 }
8
+ var iconSize: CGFloat { self == .header ? HeaderLayoutMetrics.iconSize : 24 }
9
+ }
10
+
3
11
  // MARK: - RenderRightIconSearch
4
12
 
5
13
  struct RenderRightIconSearch: View {
@@ -7,6 +15,7 @@ struct RenderRightIconSearch: View {
7
15
  let loading: Bool
8
16
  let icon: String
9
17
  let color: Color
18
+ var size: InputSearchSize = .default
10
19
  let onClick: () -> Void
11
20
 
12
21
  var body: some View {
@@ -17,13 +26,13 @@ struct RenderRightIconSearch: View {
17
26
  .padding(.horizontal, Spacing.S)
18
27
  }
19
28
  if !icon.isEmpty {
20
- // Compose: a 1pt rule inset S from the top and bottom of the 36pt bar.
29
+ // Compose: a 1pt rule inset S from the top and bottom of the bar.
21
30
  Rectangle()
22
31
  .fill(theme.colors.primary)
23
- .frame(width: 1, height: 36 - Spacing.S * 2)
32
+ .frame(width: 1, height: size.height - Spacing.S * 2)
24
33
  .padding(.leading, Spacing.S)
25
34
 
26
- Icon(source: icon, size: 24, color: color)
35
+ Icon(source: icon, size: size.iconSize, color: color)
27
36
  .padding(.leading, Spacing.S)
28
37
  .onTapGesture(perform: onClick)
29
38
  }
@@ -137,6 +146,7 @@ public struct InputSearch: View {
137
146
  var clearCondition: (() -> Bool)? = nil
138
147
  var onClearPress: () -> Void = {}
139
148
  var onSubmit: () -> Void = {}
149
+ var size: InputSearchSize = .default
140
150
 
141
151
  @State private var isFocused = false
142
152
  @State private var isBlurred = false
@@ -226,7 +236,7 @@ public struct InputSearch: View {
226
236
  if let searchIcon = searchIcon {
227
237
  searchIcon()
228
238
  } else {
229
- Icon(source: "navigation_search", size: 24, color: theme.colors.text.hint)
239
+ Icon(source: "navigation_search", size: size.iconSize, color: theme.colors.text.hint)
230
240
  .padding(.trailing, Spacing.XS)
231
241
  }
232
242
 
@@ -275,11 +285,11 @@ public struct InputSearch: View {
275
285
  .padding(.leading, Spacing.XS)
276
286
  }
277
287
 
278
- RenderRightIconSearch(loading: loading, icon: icon, color: iconColor, onClick: onRightIconPressed)
288
+ RenderRightIconSearch(loading: loading, icon: icon, color: iconColor, size: size, onClick: onRightIconPressed)
279
289
  }
280
290
  .padding(.horizontal, Spacing.M)
281
291
  .frame(maxWidth: .infinity, alignment: .leading)
282
- .frame(height: 36)
292
+ .frame(height: size.height)
283
293
  .background(
284
294
  RoundedRectangle(cornerRadius: Radius.XL)
285
295
  .fill(backgroundColor ?? theme.colors.background.surface)
@@ -298,6 +308,13 @@ public struct InputSearch: View {
298
308
  }
299
309
  }
300
310
 
311
+ /// The header search: 32pt tall with a 20pt icon, level with the header buttons.
312
+ func headerSize() -> InputSearch {
313
+ var copy = self
314
+ copy.size = .header
315
+ return copy
316
+ }
317
+
301
318
  // MARK: - Helper Functions
302
319
 
303
320
  func getBorderColor(isFocused: Bool, error: String, disabled: Bool) -> Color {
@@ -0,0 +1,67 @@
1
+ // Top navigation spec (Figma "Top Navigation · Màn hình gập"). Mirrors Compose `layout/HeaderLayout.kt`
2
+ // and RN; keep the three in sync.
3
+
4
+ import SwiftUI
5
+
6
+ /// Header spec values, in points. Public so custom header rights and extensions can match them.
7
+ public enum HeaderLayoutMetrics {
8
+ public static let buttonSize: CGFloat = 32
9
+ public static let iconSize: CGFloat = 20
10
+ public static let pillWidth: CGFloat = 72
11
+ public static let searchHeight: CGFloat = 32
12
+ public static let titleGap: CGFloat = Spacing.S
13
+ public static let sidePadding: CGFloat = Spacing.M
14
+ /// shortcut + gap + help/home pill
15
+ public static let clusterWidth: CGFloat = buttonSize + titleGap + pillWidth
16
+ public static let frameMaxWidth: CGFloat = 600
17
+ /// Banner image width on every device: wide windows keep the phone size, centered.
18
+ public static let bannerWidth: CGFloat = 375
19
+ }
20
+
21
+ /// How a screen lays out its content on wide windows; the header row follows it.
22
+ public enum ContentLayout: Equatable {
23
+ /// 12 column grid: the header keeps the 12pt side padding.
24
+ case grid
25
+ /// One column of at most `HeaderLayoutMetrics.frameMaxWidth`, centered: the header row sits in the same frame.
26
+ case stretch
27
+ }
28
+
29
+ /// Header geometry for a window; see `ScreenLayout.headerLayout(_:)`.
30
+ public struct HeaderLayout: Equatable {
31
+ /// Short side >= 600, iPhone Duo excluded (it has its own layout).
32
+ public let isWide: Bool
33
+ /// Banner kept at `HeaderLayoutMetrics.bannerWidth`, centered: wide windows plus the iPhone Duo inner display.
34
+ public let isBannerCentered: Bool
35
+ /// Padding from each side of the safe area to the header row (back, title / search, right cluster).
36
+ public let frameInset: CGFloat
37
+ /// Width of the header row, so tabs and other header extensions can line up with it.
38
+ public let frameWidth: CGFloat
39
+ }
40
+
41
+ public extension ScreenLayout {
42
+ func headerLayout(_ contentLayout: ContentLayout = .grid) -> HeaderLayout {
43
+ let isLargeWindow = min(width, height) >= ModalMetrics.foldableMinWidth
44
+ let isWide = !isIPhoneDuo && !isDuoDevice && isLargeWindow
45
+ let safeWidth = width - insets.leading - insets.trailing
46
+ let frameInset = isWide && contentLayout == .stretch
47
+ ? max(HeaderLayoutMetrics.sidePadding, (safeWidth - HeaderLayoutMetrics.frameMaxWidth) / 2)
48
+ : HeaderLayoutMetrics.sidePadding
49
+ return HeaderLayout(
50
+ isWide: isWide,
51
+ isBannerCentered: isLargeWindow,
52
+ frameInset: frameInset,
53
+ frameWidth: safeWidth - frameInset * 2)
54
+ }
55
+ }
56
+
57
+ private struct ContentLayoutKey: EnvironmentKey {
58
+ static let defaultValue: ContentLayout = .grid
59
+ }
60
+
61
+ public extension EnvironmentValues {
62
+ /// The enclosing screen's `NavigationOptions.contentLayout`, set by `StackScreen`.
63
+ var contentLayout: ContentLayout {
64
+ get { self[ContentLayoutKey.self] }
65
+ set { self[ContentLayoutKey.self] = newValue }
66
+ }
67
+ }
@@ -6,10 +6,9 @@ import SwiftUI
6
6
  /// Header bar height, mirrors Compose's `HEADER_HEIGHT`.
7
7
  public let HEADER_HEIGHT: CGFloat = 52
8
8
 
9
- /// Room the back button and toolkit take from the bar (Compose `HEADER_ACTIONS_WIDTH`).
10
- let headerActionsWidth: CGFloat = 172
11
- // Extra width the 48pt back and toolkit take on the iPhone Duo status bar row.
12
- private let statusBarRowActionsExtra: CGFloat = 55
9
+ /// Room the back button, the gaps around the title and the right cluster take from the header row
10
+ /// (Compose `HEADER_ACTIONS_WIDTH`).
11
+ let headerActionsWidth: CGFloat = HeaderLayoutMetrics.buttonSize + HeaderLayoutMetrics.titleGap * 2 + HeaderLayoutMetrics.clusterWidth
13
12
 
14
13
  public enum TitlePosition {
15
14
  case left, center
@@ -24,15 +23,19 @@ public struct AnimatedHeader {
24
23
  public var aspectRatio: AnimatedHeaderRatio = .ratio16_9
25
24
  public var isSurface: Bool = true
26
25
  public var composable: (_ scrollState: CGFloat) -> AnyView = { _ in AnyView(EmptyView()) }
26
+ /// Wide windows: fills the sides of the phone-sized banner, fading out downward.
27
+ public var bannerBackgroundColor: Color?
27
28
 
28
29
  public init(
29
30
  aspectRatio: AnimatedHeaderRatio = .ratio16_9,
30
31
  isSurface: Bool = true,
31
- composable: @escaping (_ scrollState: CGFloat) -> AnyView = { _ in AnyView(EmptyView()) }
32
+ composable: @escaping (_ scrollState: CGFloat) -> AnyView = { _ in AnyView(EmptyView()) },
33
+ bannerBackgroundColor: Color? = nil
32
34
  ) {
33
35
  self.aspectRatio = aspectRatio
34
36
  self.isSurface = isSurface
35
37
  self.composable = composable
38
+ self.bannerBackgroundColor = bannerBackgroundColor
36
39
  }
37
40
  }
38
41
 
@@ -286,10 +289,10 @@ func headerSearchProps(
286
289
  }
287
290
 
288
291
  /// Max title width: back button and toolkit share the bar unless the iPhone Duo side bar holds them.
289
- func headerTitleMaxWidth(_ layout: ScreenLayout) -> CGFloat {
292
+ func headerTitleMaxWidth(_ layout: ScreenLayout, _ contentLayout: ContentLayout) -> CGFloat {
290
293
  let clearance = layout.statusBarClearance.map { $0.left + $0.right } ?? 0
291
294
  if layout.sideBar != nil { return layout.contentWidth - Spacing.M * 2 - clearance }
292
- return layout.width - headerActionsWidth - (layout.statusBarClearance != nil ? statusBarRowActionsExtra : 0) - clearance
295
+ return layout.headerLayout(contentLayout).frameWidth - headerActionsWidth - clearance
293
296
  }
294
297
 
295
298
  // MARK: - Header
@@ -339,21 +342,21 @@ public struct NavigationHeader: View {
339
342
  }
340
343
 
341
344
  @Environment(\.screenLayout) private var layout
345
+ @Environment(\.contentLayout) private var contentLayout
342
346
  @Environment(\.appTheme) private var theme
343
347
  @OptionalEnvironmentObject private var navigator: Navigator?
344
348
  @State private var headerRightWidth: CGFloat = 0
345
349
 
350
+ private var headerLayout: HeaderLayout { layout.headerLayout(contentLayout) }
351
+
346
352
  /// iPhone Duo side bar holds back and the toolkit; a custom header right stays in the bar.
347
353
  private var useSideBar: Bool { layout.sideBar != nil }
348
354
 
349
- /// iPhone Duo inner portrait: the row sits on the status bar, between its clusters, with 48pt controls.
350
- private var statusBarRow: Bool { layout.statusBarClearance != nil && !useSideBar }
351
-
352
355
  /// Max centered title width; on the status bar row the clusters are lopsided, so both sides
353
356
  /// keep the wider one's room.
354
357
  private var centerTitleMaxWidth: CGFloat {
355
- guard let clearance = layout.statusBarClearance else { return (layout.contentWidth - Spacing.M * 2) / 2 }
356
- let back = goBack == nil || useSideBar ? 0 : DuoMetrics.controlSize + Spacing.S
358
+ guard let clearance = layout.statusBarClearance else { return headerLayout.frameWidth / 2 }
359
+ let back = goBack == nil || useSideBar ? 0 : HeaderLayoutMetrics.buttonSize + HeaderLayoutMetrics.titleGap
357
360
  let inset = max(clearance.left + back, clearance.right + headerRightWidth) + Spacing.S
358
361
  return max(layout.contentWidth - (Spacing.M + inset) * 2, 0)
359
362
  }
@@ -378,17 +381,8 @@ public struct NavigationHeader: View {
378
381
  ZStack {
379
382
  HStack(spacing: 0) {
380
383
  if let goBack, !useSideBar {
381
- if statusBarRow {
382
- SideBarButton(
383
- icon: "arrow-back",
384
- headerColor: headerColor,
385
- accessibilityId: "btn_navigation_back",
386
- action: goBack
387
- )
388
- } else {
389
- BackButton(color: headerColor, onBack: goBack)
390
- }
391
- Spacer().frame(width: Spacing.S)
384
+ BackButton(color: headerColor, onBack: goBack)
385
+ Spacer().frame(width: HeaderLayoutMetrics.titleGap)
392
386
  }
393
387
 
394
388
  if centerTitle {
@@ -399,33 +393,23 @@ public struct NavigationHeader: View {
399
393
  }
400
394
 
401
395
  if let headerRight, !(useSideBar && toolkitHeaderRight(headerRight) != nil) {
402
- Group {
403
- if statusBarRow, let toolkit = toolkitHeaderRight(headerRight) {
404
- Toolkit(
405
- headerRight: toolkit.data ?? HeaderRightData(),
406
- tintColor: toolkit.tintColor,
407
- layout: .sideBarRow
408
- )
409
- } else {
410
- AnyView(headerRight())
411
- }
412
- }
413
- .environment(\.headerColor, headerColor)
414
- .background(
415
- GeometryReader { geo in
416
- Color.clear.preference(key: HeaderRightWidthKey.self, value: geo.size.width)
417
- }
418
- )
396
+ AnyView(headerRight())
397
+ .environment(\.headerColor, headerColor)
398
+ .background(
399
+ GeometryReader { geo in
400
+ Color.clear.preference(key: HeaderRightWidthKey.self, value: geo.size.width)
401
+ }
402
+ )
419
403
  }
420
404
  }
421
- .padding(.leading, Spacing.M + (layout.statusBarClearance?.left ?? 0))
422
- .padding(.trailing, Spacing.M + (layout.statusBarClearance?.right ?? 0))
405
+ .padding(.leading, headerLayout.frameInset + (layout.statusBarClearance?.left ?? 0))
406
+ .padding(.trailing, headerLayout.frameInset + (layout.statusBarClearance?.right ?? 0))
423
407
 
424
408
  if centerTitle {
425
409
  titleArea(centered: true)
426
410
  // Compose caps a centered title at half the bar
427
411
  .frame(maxWidth: centerTitleMaxWidth)
428
- .padding(.horizontal, Spacing.M)
412
+ .padding(.horizontal, headerLayout.frameInset)
429
413
  }
430
414
  }
431
415
  .onPreferenceChange(HeaderRightWidthKey.self) { headerRightWidth = $0 }
@@ -448,6 +432,7 @@ public struct NavigationHeader: View {
448
432
  theme: theme,
449
433
  pop: navigator.map { navigator in { navigator.pop() } }
450
434
  ))
435
+ .headerSize()
451
436
  } else {
452
437
  switch headerTitle {
453
438
  case let .user(data)?:
@@ -501,7 +486,7 @@ struct HeaderBarBackground: View {
501
486
 
502
487
  // MARK: - Back button
503
488
 
504
- /// Mirrors Compose's `BackButton`: a 28pt circle with the back arrow.
489
+ /// Mirrors Compose's `BackButton`: a 32pt circle with the back arrow.
505
490
  private struct BackButton: View {
506
491
  let color: HeaderColor
507
492
  let onBack: () -> Void
@@ -511,8 +496,8 @@ private struct BackButton: View {
511
496
  Circle()
512
497
  .fill(color.backgroundButton)
513
498
  .overlay(Circle().stroke(color.borderColor, lineWidth: 0.2))
514
- .frame(width: 28, height: 28)
515
- .overlay(Icon(source: "arrow-back", size: 20, color: color.tintIconColor))
499
+ .frame(width: HeaderLayoutMetrics.buttonSize, height: HeaderLayoutMetrics.buttonSize)
500
+ .overlay(Icon(source: "arrow-back", size: HeaderLayoutMetrics.iconSize, color: color.tintIconColor))
516
501
  }
517
502
  .buttonStyle(ActiveOpacityButtonStyle())
518
503
  .accessibilityIdentifier("btn_navigation_back")
@@ -13,6 +13,7 @@ public struct HeaderJourneyView: View {
13
13
  }
14
14
 
15
15
  @Environment(\.screenLayout) private var layout
16
+ @Environment(\.contentLayout) private var contentLayout
16
17
 
17
18
  public var body: some View {
18
19
  if data.isLoading {
@@ -45,7 +46,7 @@ public struct HeaderJourneyView: View {
45
46
  MomoText(description, typography: .descriptionXsRegular, color: tint, maxLines: 1)
46
47
  }
47
48
  }
48
- .frame(maxWidth: headerTitleMaxWidth(layout), alignment: .leading)
49
+ .frame(maxWidth: headerTitleMaxWidth(layout, contentLayout), alignment: .leading)
49
50
  }
50
51
  .buttonStyle(ActiveOpacityButtonStyle())
51
52
  .disabled(data.onPress == nil)
@@ -13,6 +13,7 @@ public struct HeaderLocationView: View {
13
13
  }
14
14
 
15
15
  @Environment(\.screenLayout) private var layout
16
+ @Environment(\.contentLayout) private var contentLayout
16
17
 
17
18
  public var body: some View {
18
19
  if data.isLoading {
@@ -34,7 +35,7 @@ public struct HeaderLocationView: View {
34
35
  Icon(source: "16_arrow_chevron_down_small", size: 16, color: tint)
35
36
  }
36
37
  }
37
- .frame(maxWidth: headerTitleMaxWidth(layout), alignment: .leading)
38
+ .frame(maxWidth: headerTitleMaxWidth(layout, contentLayout), alignment: .leading)
38
39
  }
39
40
  .buttonStyle(ActiveOpacityButtonStyle())
40
41
  .disabled(data.onPress == nil)
@@ -138,9 +138,9 @@ private struct NavigationButtonConfig {
138
138
  let onPress: () -> Void
139
139
  }
140
140
 
141
- /// `sideBarColumn`: the iPhone Duo side bar; `sideBarRow`: the Duo header row on the status bar, same 48pt controls.
141
+ /// `sideBarColumn`: the iPhone Duo side bar, 48pt controls; `bar`: every header row, iPhone Duo status bar row included.
142
142
  enum ToolkitLayout {
143
- case bar, sideBarColumn, sideBarRow
143
+ case bar, sideBarColumn
144
144
  }
145
145
 
146
146
  struct Toolkit: View {
@@ -293,16 +293,14 @@ struct Toolkit: View {
293
293
  case .bar:
294
294
  horizontalBody
295
295
  case .sideBarColumn:
296
- VStack(spacing: Spacing.M) { sideBarControls(horizontal: false) }
297
- case .sideBarRow:
298
- HStack(spacing: Spacing.M) { sideBarControls(horizontal: true) }
296
+ VStack(spacing: Spacing.M) { sideBarControls }
299
297
  }
300
298
  }
301
299
  .onAppear(perform: loadFavoriteState)
302
300
  }
303
301
 
304
302
  @ViewBuilder
305
- private func sideBarControls(horizontal: Bool) -> some View {
303
+ private var sideBarControls: some View {
306
304
  let config = navigationButtonConfig
307
305
  let useHelpCenter = usesHelpCenter(context)
308
306
  if showsShortcut(headerRight, context) {
@@ -314,7 +312,7 @@ struct Toolkit: View {
314
312
  action: config.onPress
315
313
  )
316
314
  }
317
- SideBarGroup(headerColor: headerColor, itemCount: useHelpCenter ? 2 : 1, horizontal: horizontal) {
315
+ SideBarGroup(headerColor: headerColor, itemCount: useHelpCenter ? 2 : 1) {
318
316
  if useHelpCenter {
319
317
  SideBarGroupItem(
320
318
  icon: "help_center",
@@ -354,25 +352,30 @@ struct Toolkit: View {
354
352
  }
355
353
  toolButton(icon: headerRight.closeIcon, accessibilityId: "btn_navigation_close", action: onPressClose)
356
354
  }
357
- .frame(width: usesHelpCenter(context) ? 65 : 28, height: 28)
355
+ .frame(
356
+ width: usesHelpCenter(context) ? HeaderLayoutMetrics.pillWidth : HeaderLayoutMetrics.buttonSize,
357
+ height: HeaderLayoutMetrics.buttonSize
358
+ )
358
359
  .background(headerColor.backgroundButton)
359
- .cornerRadius(14)
360
- .overlay(RoundedRectangle(cornerRadius: 14).stroke(headerColor.borderColor, lineWidth: 0.2))
360
+ .clipShape(Capsule())
361
+ .overlay(Capsule().stroke(headerColor.borderColor, lineWidth: 0.2))
361
362
  .padding(.leading, Spacing.S)
362
363
  }
363
364
  }
364
365
 
366
+ /// One half of the help / home pill; each half takes an equal share of the pill width.
365
367
  private func toolButton(icon: String, accessibilityId: String, action: @escaping () -> Void) -> some View {
366
368
  SwiftUI.Button(action: action) {
367
- Icon(source: icon, size: 20, color: headerColor.tintIconColor)
368
- .padding(4)
369
+ Icon(source: icon, size: HeaderLayoutMetrics.iconSize, color: headerColor.tintIconColor)
370
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
371
+ .contentShape(Rectangle())
369
372
  }
370
373
  .buttonStyle(ActiveOpacityButtonStyle())
371
374
  .accessibilityIdentifier(accessibilityId)
372
375
  }
373
376
  }
374
377
 
375
- /// Mirrors Compose's `NavigationButton`: the 28pt circular shortcut / more button.
378
+ /// Mirrors Compose's `NavigationButton`: the 32pt circular shortcut / more button.
376
379
  public struct NavigationButton: View {
377
380
  var disabled: Bool
378
381
  var icon: String
@@ -405,9 +408,9 @@ public struct NavigationButton: View {
405
408
  Circle()
406
409
  .fill(colors.backgroundButton)
407
410
  .overlay(Circle().stroke(colors.borderColor, lineWidth: 0.2))
408
- Icon(source: icon, size: 20, color: colors.tintIconColor)
411
+ Icon(source: icon, size: HeaderLayoutMetrics.iconSize, color: colors.tintIconColor)
409
412
  }
410
- .frame(width: 28, height: 28)
413
+ .frame(width: HeaderLayoutMetrics.buttonSize, height: HeaderLayoutMetrics.buttonSize)
411
414
  .overlay(alignment: .topTrailing) {
412
415
  if showBadge {
413
416
  BadgeDot(size: .small).offset(x: -Spacing.XXS, y: -Spacing.XXS)
@@ -13,6 +13,7 @@ public struct HeaderUserView: View {
13
13
  private let avatarSize: CGFloat = Spacing.XXL // 32
14
14
 
15
15
  @Environment(\.screenLayout) private var layout
16
+ @Environment(\.contentLayout) private var contentLayout
16
17
 
17
18
  public var body: some View {
18
19
  if data.isLoading {
@@ -67,7 +68,7 @@ public struct HeaderUserView: View {
67
68
  }
68
69
  }
69
70
  }
70
- .frame(maxWidth: headerTitleMaxWidth(layout), alignment: .leading)
71
+ .frame(maxWidth: headerTitleMaxWidth(layout, contentLayout), alignment: .leading)
71
72
 
72
73
  Spacer(minLength: 0)
73
74
  }
@@ -137,26 +137,17 @@ struct SideBarButton: View {
137
137
  }
138
138
  }
139
139
 
140
- /// 48pt glass capsule grouping related controls, one item per 50pt: vertical in the side bar,
141
- /// horizontal on a header row.
140
+ /// 48pt vertical glass capsule grouping related side bar controls, one item per 50pt.
142
141
  struct SideBarGroup<Content: View>: View {
143
142
  let headerColor: HeaderColor
144
143
  let itemCount: Int
145
- var horizontal: Bool = false
146
144
  @ViewBuilder let content: () -> Content
147
145
 
148
146
  var body: some View {
149
147
  let length = itemCount > 1 ? DuoMetrics.itemPitch * CGFloat(itemCount) : DuoMetrics.controlSize
150
- Group {
151
- if horizontal {
152
- HStack(spacing: 0) { content() }
153
- .frame(width: length, height: DuoMetrics.controlSize)
154
- } else {
155
- VStack(spacing: 0) { content() }
156
- .frame(width: DuoMetrics.controlSize, height: length)
157
- }
158
- }
159
- .modifier(SideBarGlass(headerColor: headerColor, shape: RoundedRectangle(cornerRadius: Radius.XL)))
148
+ VStack(spacing: 0) { content() }
149
+ .frame(width: DuoMetrics.controlSize, height: length)
150
+ .modifier(SideBarGlass(headerColor: headerColor, shape: RoundedRectangle(cornerRadius: Radius.XL)))
160
151
  }
161
152
  }
162
153
 
@@ -87,6 +87,8 @@ public struct NavigationOptions {
87
87
  public var inputSearchProps: InputSearchProps?
88
88
  public var fabProps: FabProps?
89
89
  public var onBackHandler: (() -> Void)?
90
+ /// Wide windows: `.stretch` puts the header row in the centered 600pt content frame.
91
+ public var contentLayout: ContentLayout
90
92
 
91
93
  public init(
92
94
  screenName: String? = nil,
@@ -115,7 +117,8 @@ public struct NavigationOptions {
115
117
  layoutOffset: CGFloat = 56,
116
118
  inputSearchProps: InputSearchProps? = nil,
117
119
  fabProps: FabProps? = nil,
118
- onBackHandler: (() -> Void)? = nil
120
+ onBackHandler: (() -> Void)? = nil,
121
+ contentLayout: ContentLayout = .grid
119
122
  ) {
120
123
  self.screenName = screenName
121
124
  self.title = title
@@ -144,6 +147,7 @@ public struct NavigationOptions {
144
147
  self.inputSearchProps = inputSearchProps
145
148
  self.fabProps = fabProps
146
149
  self.onBackHandler = onBackHandler
150
+ self.contentLayout = contentLayout
147
151
  }
148
152
  }
149
153
 
@@ -187,6 +191,7 @@ struct OptionsStackScreen: View {
187
191
  layoutOffset: options.layoutOffset,
188
192
  inputSearchProps: options.inputSearchProps,
189
193
  fabProps: options.fabProps,
194
+ contentLayout: options.contentLayout,
190
195
  screenName: screenName,
191
196
  content: content
192
197
  )
@@ -34,6 +34,7 @@ public struct StackScreen<Content: View>: View {
34
34
  var layoutOffset: CGFloat
35
35
  var inputSearchProps: InputSearchProps?
36
36
  var fabProps: FabProps?
37
+ var contentLayout: ContentLayout = .grid
37
38
  var screenName: String = ""
38
39
  var content: () -> Content
39
40
 
@@ -65,6 +66,7 @@ public struct StackScreen<Content: View>: View {
65
66
  layoutOffset: CGFloat = 56,
66
67
  inputSearchProps: InputSearchProps? = nil,
67
68
  fabProps: FabProps? = nil,
69
+ contentLayout: ContentLayout = .grid,
68
70
  screenName: String = "",
69
71
  @ViewBuilder content: @escaping () -> Content
70
72
  ) {
@@ -95,6 +97,7 @@ public struct StackScreen<Content: View>: View {
95
97
  self.layoutOffset = layoutOffset
96
98
  self.inputSearchProps = inputSearchProps
97
99
  self.fabProps = fabProps
100
+ self.contentLayout = contentLayout
98
101
  self.screenName = screenName
99
102
  self.content = content
100
103
  }
@@ -307,6 +310,7 @@ public struct StackScreen<Content: View>: View {
307
310
  }
308
311
  }
309
312
  .ignoresSafeArea(.keyboard, edges: .bottom)
313
+ .environment(\.contentLayout, contentLayout)
310
314
  .onChange(of: scrollOffset) { updateHeaderHide($0) }
311
315
  .onAppear { reportEmptySideBar() }
312
316
  .onChange(of: showsSideBar) { _ in reportEmptySideBar() }
@@ -506,18 +510,28 @@ public struct StackScreen<Content: View>: View {
506
510
  }
507
511
 
508
512
  private func heroGlassStart(_ animatedHeader: AnimatedHeader) -> CGFloat {
509
- max(layout.width / animatedHeader.aspectRatio.value - layout.headerHeight, 0)
513
+ max(bannerWidth / animatedHeader.aspectRatio.value - layout.headerHeight, 0)
514
+ }
515
+
516
+ /// Wide windows and the iPhone Duo inner display keep the phone banner size, centered; phones fill the width.
517
+ private var bannerWidth: CGFloat {
518
+ layout.headerLayout(contentLayout).isBannerCentered ? HeaderLayoutMetrics.bannerWidth : layout.width
510
519
  }
511
520
 
512
521
  /// The banner fills the width at its aspect ratio; the body starts `layoutOffset` below the
513
- /// header band so it overlaps the banner's lower part.
522
+ /// header band so it overlaps the banner's lower part. On wide windows and the Duo inner display
523
+ /// `bannerBackgroundColor` fills the sides, fading out downward.
514
524
  @ViewBuilder
515
525
  private func animatedHeroBody(_ animatedHeader: AnimatedHeader) -> some View {
516
- let width = layout.width
526
+ let width = bannerWidth
517
527
  let imageHeight = width / animatedHeader.aspectRatio.value
518
528
  let contentTopInset = layout.headerHeight + layoutOffset
519
529
 
520
530
  ZStack(alignment: .top) {
531
+ if width < layout.width, let fill = animatedHeader.bannerBackgroundColor {
532
+ LinearGradient(colors: [fill, fill.opacity(0)], startPoint: .top, endPoint: .bottom)
533
+ .frame(width: layout.width, height: imageHeight)
534
+ }
521
535
  animatedHeader.composable(scrollOffset)
522
536
  .frame(width: width, height: imageHeight)
523
537
  .clipped()
@@ -735,6 +749,7 @@ private struct SearchAnimatedHeader: View {
735
749
  var hasToolkit: Bool = false
736
750
 
737
751
  @Environment(\.screenLayout) private var layout
752
+ @Environment(\.contentLayout) private var contentLayout
738
753
  @Environment(\.appTheme) private var theme
739
754
  @OptionalEnvironmentObject private var navigator: Navigator?
740
755
 
@@ -745,14 +760,14 @@ private struct SearchAnimatedHeader: View {
745
760
  let rowTop = layout.headerStatusBarHeight - layout.insets.top
746
761
  let minTop = rowTop + (layout.headerBarHeight - HEADER_HEIGHT) / 2
747
762
  let maxTop = layout.headerHeight - layout.insets.top
748
- let minSide = Spacing.M
749
- // collapsed on the iPhone Duo status bar row, the search stays between its clusters (48pt back there)
763
+ // stretch screens on wide windows keep the search in the header's centered frame
764
+ let minSide = layout.headerLayout(contentLayout).frameInset
765
+ // collapsed on the iPhone Duo status bar row, the search stays between its clusters
750
766
  let clearance = layout.statusBarClearance
751
- let backWidth: CGFloat = clearance != nil && !useSideBar ? DuoMetrics.controlSize : 28
752
- let maxStart = (clearance?.left ?? 0) + (hiddenBack || useSideBar ? Spacing.M : backWidth + Spacing.M + Spacing.S)
767
+ let maxStart = (clearance?.left ?? 0) + (hiddenBack || useSideBar ? minSide : HeaderLayoutMetrics.buttonSize + minSide + HeaderLayoutMetrics.titleGap)
753
768
  let maxEnd = (clearance?.right ?? 0) + (useSideBar && hasToolkit
754
- ? Spacing.M
755
- : headerRightWidth + (hasHeaderRight ? Spacing.M * 2 : Spacing.M))
769
+ ? minSide
770
+ : headerRightWidth + (hasHeaderRight ? minSide + Spacing.M : minSide))
756
771
 
757
772
  // one progress for all three, so the field docks with its final insets and never covers the toolkit
758
773
  let progress = min(scroll / HEADER_HEIGHT, 1)
@@ -768,6 +783,7 @@ private struct SearchAnimatedHeader: View {
768
783
  theme: theme,
769
784
  pop: navigator.map { navigator in { navigator.pop() } }
770
785
  ))
786
+ .headerSize()
771
787
  .frame(height: HEADER_HEIGHT)
772
788
  .padding(.leading, start)
773
789
  .padding(.trailing, end)
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKits'
3
- s.version = '0.169.9'
3
+ s.version = '0.169.10-beta.1'
4
4
  s.summary = 'MoMoUIKits for iOS'
5
5
  s.homepage = 'https://momo.vn'
6
6
  s.license = { :type => 'MIT' }
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'MoMoUIKitsDemo'
3
- s.version = '0.169.9'
3
+ s.version = '0.169.10-beta.1'
4
4
  s.summary = 'Demo browser for MoMoUIKits SwiftUI components'
5
5
  s.homepage = 'https://momo.vn'
6
6
  s.license = { :type => 'MIT' }