@momo-kits/native-kits 0.169.8-beta.5-debug → 0.169.8-beta.6-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 +1 -1
- package/compose/compose.podspec +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +2 -4
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/Header.kt +11 -32
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/HeaderRight.kt +4 -12
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/component/SideBar.kt +3 -10
- package/gradle.properties +1 -1
- package/ios/Navigation/Component/Header.swift +10 -35
- package/ios/Navigation/Component/HeaderRight.swift +5 -7
- package/ios/Navigation/Component/SideBar.swift +4 -13
- package/ios/Navigation/StackScreen.swift +2 -3
- package/ios/native-kits.podspec +1 -1
- package/ios-demo/MoMoUIKitsDemo.podspec +1 -1
- package/package.json +1 -1
package/compose/build.gradle.kts
CHANGED
package/compose/compose.podspec
CHANGED
|
@@ -87,7 +87,6 @@ import vn.momo.kits.utils.horizontalSafeAreaPadding
|
|
|
87
87
|
import vn.momo.kits.layout.LocalScreenLayout
|
|
88
88
|
import vn.momo.kits.layout.ScreenLayout
|
|
89
89
|
import vn.momo.kits.layout.consumeHorizontalInsets
|
|
90
|
-
import vn.momo.kits.layout.DuoMetrics
|
|
91
90
|
import vn.momo.kits.layout.HEADER_BANNER_WIDTH
|
|
92
91
|
import vn.momo.kits.layout.HEADER_BUTTON_SIZE
|
|
93
92
|
import vn.momo.kits.layout.HEADER_TITLE_GAP
|
|
@@ -527,14 +526,13 @@ internal fun SearchAnimated(
|
|
|
527
526
|
// collapsed, the search is centered in the bar row
|
|
528
527
|
val minTopPadding = screenLayout.headerStatusBarHeight + (screenLayout.headerBarHeight - HEADER_HEIGHT.dp) / 2
|
|
529
528
|
val maxTopPadding = screenLayout.headerHeight
|
|
530
|
-
// collapsed on the iPhone Duo status bar row, the search stays between its clusters
|
|
529
|
+
// collapsed on the iPhone Duo status bar row, the search stays between its clusters
|
|
531
530
|
val clearance = screenLayout.statusBarClearance
|
|
532
|
-
val backWidth = if (clearance != null && !useSideBar) DuoMetrics.controlSize else HEADER_BUTTON_SIZE
|
|
533
531
|
// stretch screens on wide windows keep the search in the header's centered frame
|
|
534
532
|
val sidePadding = rememberHeaderLayout(options.contentLayout).frameInset
|
|
535
533
|
val minStartPadding = sidePadding
|
|
536
534
|
val maxStartPadding = (clearance?.left ?: 0.dp) +
|
|
537
|
-
if (options.hiddenBack || useSideBar) sidePadding else
|
|
535
|
+
if (options.hiddenBack || useSideBar) sidePadding else HEADER_BUTTON_SIZE + sidePadding + HEADER_TITLE_GAP
|
|
538
536
|
val minEndPadding = sidePadding
|
|
539
537
|
val maxEndPadding = (clearance?.right ?: 0.dp) + when {
|
|
540
538
|
options.headerRight is HeaderRight.None -> sidePadding
|
|
@@ -42,7 +42,6 @@ import vn.momo.kits.const.Colors
|
|
|
42
42
|
import vn.momo.kits.components.PopupNotifyProps
|
|
43
43
|
import vn.momo.kits.application.IsShowBaseLineDebug
|
|
44
44
|
import vn.momo.kits.const.Spacing
|
|
45
|
-
import vn.momo.kits.layout.DuoMetrics
|
|
46
45
|
import vn.momo.kits.layout.HEADER_BUTTON_SIZE
|
|
47
46
|
import vn.momo.kits.layout.HEADER_CLUSTER_WIDTH
|
|
48
47
|
import vn.momo.kits.layout.HEADER_ICON_SIZE
|
|
@@ -68,9 +67,6 @@ enum class TitlePosition { LEFT, CENTER }
|
|
|
68
67
|
// back, the gaps around the title and the right cluster
|
|
69
68
|
private val HEADER_ACTIONS_WIDTH = HEADER_BUTTON_SIZE + HEADER_TITLE_GAP * 2 + HEADER_CLUSTER_WIDTH
|
|
70
69
|
|
|
71
|
-
// Side padding, 48pt back and toolkit on the iPhone Duo status bar row.
|
|
72
|
-
private val STATUS_BAR_ROW_ACTIONS_WIDTH = 227.dp
|
|
73
|
-
|
|
74
70
|
@Suppress("FrequentlyChangingValue")
|
|
75
71
|
@Composable
|
|
76
72
|
internal fun headerOpacity(): Float {
|
|
@@ -97,8 +93,7 @@ internal fun headerTitleMaxWidth(): Dp {
|
|
|
97
93
|
val clearance = layout.statusBarClearance
|
|
98
94
|
val clearanceWidth = clearance?.let { it.left + it.right } ?: 0.dp
|
|
99
95
|
if (layout.sideBar != null) return layout.contentWidth - Spacing.M * 2 - clearanceWidth
|
|
100
|
-
|
|
101
|
-
return rememberHeaderLayout(LocalOptions.current.contentLayout).frameWidth - HEADER_ACTIONS_WIDTH
|
|
96
|
+
return rememberHeaderLayout(LocalOptions.current.contentLayout).frameWidth - HEADER_ACTIONS_WIDTH - clearanceWidth
|
|
102
97
|
}
|
|
103
98
|
|
|
104
99
|
// Scroll distance over which the Duo glass bar fades in.
|
|
@@ -133,9 +128,8 @@ internal fun Header(onBackHandler: (() -> Unit)? = null) {
|
|
|
133
128
|
val layout = getScreenLayout()
|
|
134
129
|
val headerLayout = rememberHeaderLayout(options.contentLayout)
|
|
135
130
|
val useSideBar = layout.sideBar != null
|
|
136
|
-
// iPhone Duo inner portrait: the row sits on the status bar, between its clusters
|
|
131
|
+
// iPhone Duo inner portrait: the row sits on the status bar, between its clusters, with phone-size controls
|
|
137
132
|
val clearance = layout.statusBarClearance
|
|
138
|
-
val statusBarRow = clearance != null && !useSideBar
|
|
139
133
|
val opacity = headerOpacity()
|
|
140
134
|
|
|
141
135
|
val headerColor = getHeaderColor(options.headerType, opacity, options.tintColor, Colors.black_17)
|
|
@@ -201,23 +195,14 @@ internal fun Header(onBackHandler: (() -> Unit)? = null) {
|
|
|
201
195
|
horizontalArrangement = Arrangement.SpaceBetween
|
|
202
196
|
) {
|
|
203
197
|
if (!options.hiddenBack && !useSideBar) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
BackButton(
|
|
213
|
-
borderColor = headerColor.borderColor,
|
|
214
|
-
backgroundButton = headerColor.backgroundButton,
|
|
215
|
-
tintIconColor = headerColor.tintIconColor,
|
|
216
|
-
onBackHandler = {
|
|
217
|
-
navigator.onBackSafe { }
|
|
218
|
-
}
|
|
219
|
-
)
|
|
220
|
-
}
|
|
198
|
+
BackButton(
|
|
199
|
+
borderColor = headerColor.borderColor,
|
|
200
|
+
backgroundButton = headerColor.backgroundButton,
|
|
201
|
+
tintIconColor = headerColor.tintIconColor,
|
|
202
|
+
onBackHandler = {
|
|
203
|
+
navigator.onBackSafe { }
|
|
204
|
+
}
|
|
205
|
+
)
|
|
221
206
|
Spacer(Modifier.width(HEADER_TITLE_GAP))
|
|
222
207
|
}
|
|
223
208
|
|
|
@@ -238,12 +223,6 @@ internal fun Header(onBackHandler: (() -> Unit)? = null) {
|
|
|
238
223
|
when {
|
|
239
224
|
// on Duo the side bar column holds the header right (toolkit or custom), not this row
|
|
240
225
|
useSideBar -> Unit
|
|
241
|
-
statusBarRow && headerRight is HeaderRight.Toolkit -> Toolkit(
|
|
242
|
-
headerRight = headerRight,
|
|
243
|
-
tintColor = options.tintColor,
|
|
244
|
-
headerColor = headerColor,
|
|
245
|
-
layout = ToolkitLayout.SideBarRow,
|
|
246
|
-
)
|
|
247
226
|
else -> CompositionLocalProvider(LocalHeaderColor provides headerColor) {
|
|
248
227
|
HeaderRight(headerRight, options.tintColor, headerColor)
|
|
249
228
|
}
|
|
@@ -253,7 +232,7 @@ internal fun Header(onBackHandler: (() -> Unit)? = null) {
|
|
|
253
232
|
if (centerTitle) {
|
|
254
233
|
// on the status bar row the clusters are lopsided, so both sides keep the wider one's room
|
|
255
234
|
val centerInset = if (clearance != null) {
|
|
256
|
-
val back = if (options.hiddenBack || useSideBar) 0.dp else
|
|
235
|
+
val back = if (options.hiddenBack || useSideBar) 0.dp else HEADER_BUTTON_SIZE + HEADER_TITLE_GAP
|
|
257
236
|
val right = with(LocalDensity.current) { headerRightWidthPx.intValue.toDp() }
|
|
258
237
|
maxOf(clearance.left + back, clearance.right + right) + Spacing.S
|
|
259
238
|
} else {
|
|
@@ -84,8 +84,8 @@ internal fun toolkitColumnHeight(headerRight: HeaderRight.Toolkit): Dp {
|
|
|
84
84
|
return shortcut + if (groupCount > 1) DuoMetrics.itemPitch * groupCount else DuoMetrics.controlSize
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
// SideBarColumn: the iPhone Duo side bar;
|
|
88
|
-
internal enum class ToolkitLayout { Bar, SideBarColumn
|
|
87
|
+
// SideBarColumn: the iPhone Duo side bar, 48pt controls; Bar: every header row, iPhone Duo status bar row included.
|
|
88
|
+
internal enum class ToolkitLayout { Bar, SideBarColumn }
|
|
89
89
|
|
|
90
90
|
@Composable
|
|
91
91
|
internal fun Toolkit(
|
|
@@ -172,8 +172,7 @@ internal fun Toolkit(
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
if (layout != ToolkitLayout.Bar) {
|
|
175
|
-
|
|
176
|
-
val controls = @Composable {
|
|
175
|
+
Column(verticalArrangement = Arrangement.spacedBy(Spacing.M)) {
|
|
177
176
|
if (isShowShortcut) {
|
|
178
177
|
SideBarButton(
|
|
179
178
|
icon = icon,
|
|
@@ -183,7 +182,7 @@ internal fun Toolkit(
|
|
|
183
182
|
onClick = navButtonConfig.onPress,
|
|
184
183
|
)
|
|
185
184
|
}
|
|
186
|
-
SideBarGroup(headerColor = headerColor, itemCount = if (useHelpCenter) 2 else 1
|
|
185
|
+
SideBarGroup(headerColor = headerColor, itemCount = if (useHelpCenter) 2 else 1) { item ->
|
|
187
186
|
if (useHelpCenter) {
|
|
188
187
|
SideBarGroupItem(
|
|
189
188
|
icon = "help_center",
|
|
@@ -202,13 +201,6 @@ internal fun Toolkit(
|
|
|
202
201
|
)
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
|
-
if (horizontal) {
|
|
206
|
-
Row(horizontalArrangement = Arrangement.spacedBy(Spacing.M), verticalAlignment = Alignment.CenterVertically) {
|
|
207
|
-
controls()
|
|
208
|
-
}
|
|
209
|
-
} else {
|
|
210
|
-
Column(verticalArrangement = Arrangement.spacedBy(Spacing.M)) { controls() }
|
|
211
|
-
}
|
|
212
204
|
return
|
|
213
205
|
}
|
|
214
206
|
|
|
@@ -150,25 +150,18 @@ internal fun SideBarButton(
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
//
|
|
153
|
+
// Vertical capsule grouping related side bar controls, one item per 50pt.
|
|
154
154
|
@Composable
|
|
155
155
|
internal fun SideBarGroup(
|
|
156
156
|
headerColor: HeaderColor,
|
|
157
157
|
itemCount: Int,
|
|
158
|
-
horizontal: Boolean = false,
|
|
159
158
|
content: @Composable (itemModifier: Modifier) -> Unit,
|
|
160
159
|
) {
|
|
161
160
|
val length = if (itemCount > 1) DuoMetrics.itemPitch * itemCount else DuoMetrics.controlSize
|
|
162
161
|
val item = length / itemCount.coerceAtLeast(1)
|
|
163
162
|
val glass = Modifier.sideBarGlass(headerColor, RoundedCornerShape(Radius.XL))
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
content(Modifier.size(width = item, height = DuoMetrics.controlSize))
|
|
167
|
-
}
|
|
168
|
-
} else {
|
|
169
|
-
Column(Modifier.size(width = DuoMetrics.controlSize, height = length).then(glass)) {
|
|
170
|
-
content(Modifier.size(width = DuoMetrics.controlSize, height = item))
|
|
171
|
-
}
|
|
163
|
+
Column(Modifier.size(width = DuoMetrics.controlSize, height = length).then(glass)) {
|
|
164
|
+
content(Modifier.size(width = DuoMetrics.controlSize, height = item))
|
|
172
165
|
}
|
|
173
166
|
}
|
|
174
167
|
|
package/gradle.properties
CHANGED
|
@@ -9,8 +9,6 @@ public let HEADER_HEIGHT: CGFloat = 52
|
|
|
9
9
|
/// Room the back button, the gaps around the title and the right cluster take from the header row
|
|
10
10
|
/// (Compose `HEADER_ACTIONS_WIDTH`).
|
|
11
11
|
let headerActionsWidth: CGFloat = HeaderLayoutMetrics.buttonSize + HeaderLayoutMetrics.titleGap * 2 + HeaderLayoutMetrics.clusterWidth
|
|
12
|
-
// Side padding, 48pt back and toolkit on the iPhone Duo status bar row.
|
|
13
|
-
private let statusBarRowActionsWidth: CGFloat = 227
|
|
14
12
|
|
|
15
13
|
public enum TitlePosition {
|
|
16
14
|
case left, center
|
|
@@ -294,8 +292,7 @@ func headerSearchProps(
|
|
|
294
292
|
func headerTitleMaxWidth(_ layout: ScreenLayout, _ contentLayout: ContentLayout) -> CGFloat {
|
|
295
293
|
let clearance = layout.statusBarClearance.map { $0.left + $0.right } ?? 0
|
|
296
294
|
if layout.sideBar != nil { return layout.contentWidth - Spacing.M * 2 - clearance }
|
|
297
|
-
|
|
298
|
-
return layout.headerLayout(contentLayout).frameWidth - headerActionsWidth
|
|
295
|
+
return layout.headerLayout(contentLayout).frameWidth - headerActionsWidth - clearance
|
|
299
296
|
}
|
|
300
297
|
|
|
301
298
|
// MARK: - Header
|
|
@@ -355,14 +352,11 @@ public struct NavigationHeader: View {
|
|
|
355
352
|
/// iPhone Duo side bar holds back and the toolkit; a custom header right stays in the bar.
|
|
356
353
|
private var useSideBar: Bool { layout.sideBar != nil }
|
|
357
354
|
|
|
358
|
-
/// iPhone Duo inner portrait: the row sits on the status bar, between its clusters, with 48pt controls.
|
|
359
|
-
private var statusBarRow: Bool { layout.statusBarClearance != nil && !useSideBar }
|
|
360
|
-
|
|
361
355
|
/// Max centered title width; on the status bar row the clusters are lopsided, so both sides
|
|
362
356
|
/// keep the wider one's room.
|
|
363
357
|
private var centerTitleMaxWidth: CGFloat {
|
|
364
358
|
guard let clearance = layout.statusBarClearance else { return headerLayout.frameWidth / 2 }
|
|
365
|
-
let back = goBack == nil || useSideBar ? 0 :
|
|
359
|
+
let back = goBack == nil || useSideBar ? 0 : HeaderLayoutMetrics.buttonSize + HeaderLayoutMetrics.titleGap
|
|
366
360
|
let inset = max(clearance.left + back, clearance.right + headerRightWidth) + Spacing.S
|
|
367
361
|
return max(layout.contentWidth - (Spacing.M + inset) * 2, 0)
|
|
368
362
|
}
|
|
@@ -387,16 +381,7 @@ public struct NavigationHeader: View {
|
|
|
387
381
|
ZStack {
|
|
388
382
|
HStack(spacing: 0) {
|
|
389
383
|
if let goBack, !useSideBar {
|
|
390
|
-
|
|
391
|
-
SideBarButton(
|
|
392
|
-
icon: "arrow-back",
|
|
393
|
-
headerColor: headerColor,
|
|
394
|
-
accessibilityId: "btn_navigation_back",
|
|
395
|
-
action: goBack
|
|
396
|
-
)
|
|
397
|
-
} else {
|
|
398
|
-
BackButton(color: headerColor, onBack: goBack)
|
|
399
|
-
}
|
|
384
|
+
BackButton(color: headerColor, onBack: goBack)
|
|
400
385
|
Spacer().frame(width: HeaderLayoutMetrics.titleGap)
|
|
401
386
|
}
|
|
402
387
|
|
|
@@ -408,23 +393,13 @@ public struct NavigationHeader: View {
|
|
|
408
393
|
}
|
|
409
394
|
|
|
410
395
|
if let headerRight, !(useSideBar && toolkitHeaderRight(headerRight) != nil) {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
} else {
|
|
419
|
-
AnyView(headerRight())
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
.environment(\.headerColor, headerColor)
|
|
423
|
-
.background(
|
|
424
|
-
GeometryReader { geo in
|
|
425
|
-
Color.clear.preference(key: HeaderRightWidthKey.self, value: geo.size.width)
|
|
426
|
-
}
|
|
427
|
-
)
|
|
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
|
+
)
|
|
428
403
|
}
|
|
429
404
|
}
|
|
430
405
|
.padding(.leading, headerLayout.frameInset + (layout.statusBarClearance?.left ?? 0))
|
|
@@ -138,9 +138,9 @@ private struct NavigationButtonConfig {
|
|
|
138
138
|
let onPress: () -> Void
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
/// `sideBarColumn`: the iPhone Duo side bar; `
|
|
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
|
|
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
|
|
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
|
|
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
|
|
315
|
+
SideBarGroup(headerColor: headerColor, itemCount: useHelpCenter ? 2 : 1) {
|
|
318
316
|
if useHelpCenter {
|
|
319
317
|
SideBarGroupItem(
|
|
320
318
|
icon: "help_center",
|
|
@@ -137,26 +137,17 @@ struct SideBarButton: View {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
/// 48pt glass capsule grouping related controls, one item per 50pt
|
|
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
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
|
|
@@ -749,10 +749,9 @@ private struct SearchAnimatedHeader: View {
|
|
|
749
749
|
let maxTop = layout.headerHeight - layout.insets.top
|
|
750
750
|
// stretch screens on wide windows keep the search in the header's centered frame
|
|
751
751
|
let minSide = layout.headerLayout(contentLayout).frameInset
|
|
752
|
-
// collapsed on the iPhone Duo status bar row, the search stays between its clusters
|
|
752
|
+
// collapsed on the iPhone Duo status bar row, the search stays between its clusters
|
|
753
753
|
let clearance = layout.statusBarClearance
|
|
754
|
-
let
|
|
755
|
-
let maxStart = (clearance?.left ?? 0) + (hiddenBack || useSideBar ? minSide : backWidth + minSide + HeaderLayoutMetrics.titleGap)
|
|
754
|
+
let maxStart = (clearance?.left ?? 0) + (hiddenBack || useSideBar ? minSide : HeaderLayoutMetrics.buttonSize + minSide + HeaderLayoutMetrics.titleGap)
|
|
756
755
|
let maxEnd = (clearance?.right ?? 0) + (useSideBar && hasToolkit
|
|
757
756
|
? minSide
|
|
758
757
|
: headerRightWidth + (hasHeaderRight ? minSide + Spacing.M : minSide))
|
package/ios/native-kits.podspec
CHANGED