-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI-624: move alerts out of tab navigation into to settings #255
CLI-624: move alerts out of tab navigation into to settings #255
Conversation
@@ -19,7 +19,7 @@ public class dydxMarketInfoViewBuilder: NSObject, ObjectBuilderProtocol { | |||
public func build<T>() -> T? { | |||
let presenter = dydxMarketInfoViewPresenter() | |||
let view = presenter.viewModel?.createView() ?? PlatformViewModel().createView() | |||
let viewController = dydxMarketInfoViewController(presenter: presenter, view: view, configuration: .nav) | |||
let viewController = dydxMarketInfoViewController(presenter: presenter, view: view, configuration: .default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nav is exactly the same as default
@@ -33,7 +33,6 @@ public struct HostingViewControllerConfiguration { | |||
public static let `default` = HostingViewControllerConfiguration(ignoreSafeArea: false, fixedHeight: nil, gradientTabbar: false) | |||
public static let ignoreSafeArea = HostingViewControllerConfiguration(ignoreSafeArea: true) | |||
public static let tabbarItemView = HostingViewControllerConfiguration(ignoreSafeArea: false, fixedHeight: nil, gradientTabbar: true) | |||
public static let nav = HostingViewControllerConfiguration(ignoreSafeArea: false, fixedHeight: nil, gradientTabbar: false, disableNavigationController: false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see line 21 to confirm nav was same as default
// offset for tab bar. comes from dydxV4TabBarBuilder's center button height | ||
.padding(.bottom, 30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems to be how we do it elsewhere 😞 unsure if there's a good solution right now to improve other than adding a comment
a378322
to
31c0e5b
Compare
31c0e5b
to
8241c48
Compare
* move alerts routing to settings screen * showing alerts * rename & delete old files * add back button * conditionally hide/show alerts based on onboarding status and feature flag * rename * rename again * move tab config out of json * improve tab bar gradient and app theme update propagation --------- Co-authored-by: Mike <[email protected]>
Links (dYdX Internal Use Only)
Linear Ticket: CLI-624: move alerts out of tab navigation into to settings
Figma Design: https://www.figma.com/design/mKevZOfE9nj6MZpiolKYW1/dYdX-%E2%80%BA-Mobile?node-id=9615-982&t=QjiTEfHMhHzJgIrk-4
Description / Intuition
Before/After Screenshots or Videos
Simulator.Screen.Recording.-.iPhone.15.Pro.Mainnet.-.2024-09-23.at.13.31.49.mp4
Type of Change