-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fix/dapps fixes #1330
Fix/dapps fixes #1330
Conversation
let title: String | ||
let subtitle: String | ||
|
||
let imageViewModel: StaticImageViewModel |
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.
Shouldn't it be ImageViewModelProtocol?
) | ||
else { return nil } | ||
|
||
let domain = urlString[range] |
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.
Looks complicated. What is wrong with pageURL.host?
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.
pageURL.host might return nil for complex domains that contains subdomains i.e. app.parallel.finance
@@ -162,12 +193,12 @@ extension NovaMainAppContainerViewController { | |||
rootView.addSubview(bottomView) | |||
|
|||
let topContainerBottomOffset = Constants.topContainerBottomOffset(for: view) | |||
let minimizedWidgetHeight = Constants.minimizedWidgetHeight(for: view) | |||
let widgetTopConstraintInset = UIScreen.main.bounds.height |
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.
Can we use bottom of the container itself instead of height of the screen? Feel not comfortable with assumptions about screen height
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.
Yeah, I just came up with better approach. Gonna update soon.
SUMMARY
There are few thing needed to be fixed and added for preparing Seamless DApp feature. Most of them are just layout and sorting/filtering fixes.
DAppList
module.DAppSearch
by query input.DAppSearch
.NovaMainAppContainer
layout so it no longer breaks during screen rotations with device orientation changes.DAppIconViewModelFactory
to handle DApp icon and favicon logic.SOLUTION SCREENSHOTS