@momo-kits/native-kits 0.169.15-beta.3 → 0.169.15-beta.4
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.
|
@@ -28,6 +28,7 @@ public struct BottomTab: View {
|
|
|
28
28
|
/// `compressionBehavior`: iPhone Duo bar that starts compressed when the side bar can't hold both (a tap swaps).
|
|
29
29
|
/// `onTabPress` gets the switch to run, e.g. after a login gate. `backToInitialTab`: back goes to it first.
|
|
30
30
|
/// `useLegacy`: the pre-redesign phone bar (full width, content kept above it; edge to edge ignored).
|
|
31
|
+
/// On by default until the redesign rolls out; pass false for the floating bar.
|
|
31
32
|
public init(
|
|
32
33
|
items: [BottomTabItem],
|
|
33
34
|
floatingButton: BottomTabFloatingButton? = nil,
|
|
@@ -35,7 +36,7 @@ public struct BottomTab: View {
|
|
|
35
36
|
initialRouteName: String? = nil,
|
|
36
37
|
onTabPress: ((_ index: Int, _ switchTab: @escaping () -> Void) -> Void)? = nil,
|
|
37
38
|
backToInitialTab: Bool = true,
|
|
38
|
-
useLegacy: Bool =
|
|
39
|
+
useLegacy: Bool = true
|
|
39
40
|
) {
|
|
40
41
|
self.items = items
|
|
41
42
|
self.floatingButton = floatingButton
|
package/ios/native-kits.podspec
CHANGED
|
@@ -38,7 +38,7 @@ private struct DemoConfig: Hashable {
|
|
|
38
38
|
var ctaLottie = false
|
|
39
39
|
var initialRouteName = "Momo"
|
|
40
40
|
var compressionBehavior: DuoBarCompressionBehavior = .toolbar
|
|
41
|
-
var useLegacy =
|
|
41
|
+
var useLegacy = true
|
|
42
42
|
var backToInitialTab = true
|
|
43
43
|
// a sticky footer in the tab's content body, to check it clears the floating bar
|
|
44
44
|
var footer = false
|