-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Update] Sample Viewer category front page #221
Conversation
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.
I'm not particularly good at naming views, so let's discuss that with other reviewers in the next step.
First batch of comments.
Shared/Assets.xcassets/Categories/Augmented-Reality-bg.imageset/Augmented_reality@1x.png
Outdated
Show resolved
Hide resolved
Shared/Assets.xcassets/Categories/Edit-and-Manage-Data-bg.imageset/Contents.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Ting <tchen@esri.com>
Co-authored-by: Ting <tchen@esri.com>
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.
LGTM
I added David to the reviewers as he is familiar with UI best practices. |
I read the code and couldn't find anything that might caused this bug, except the difference between iOS 16 |
Shared/Assets.xcassets/Categories/Cloud-and-Portal-bg.imageset/Cloud-and-Portal-bg@2x.png
Outdated
Show resolved
Hide resolved
Shared/Assets.xcassets/Categories/Augmented-Reality-bg.imageset/Augmented-Reality-bg@2x.png
Outdated
Show resolved
Hide resolved
Co-authored-by: David Feinzimer <dfeinzimer@gmail.com>
Co-authored-by: David Feinzimer <dfeinzimer@gmail.com>
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 good. I'm not sure if the AboutView
is within the scope of this PR, but noticed that the logo and copyright text could use some spacing.
The copyright year can also be generated rather than hardcoded:
Text("Copyright © 2022 - \(String(Calendar.current.component(.year, from: Date()))) Esri. All Rights Reserved.")
Co-authored-by: David Feinzimer <dfeinzimer@gmail.com> Co-authored-by: Destiny Hochhalter <117859673+des12437@users.noreply.github.com>
Please see Phil's comment on the second part of the year string: #3 (comment) It shouldn't be dynamic, but rather manually updated to reflect the last change to the code. |
Sorry, I meant to hold this PR from being merged until the navigation bug (mentioned in the "To Discuss" section in the description) is addressed. I'll let Phil to comment on that. @dfeinzimer and @des12437 do you have thought on that? |
Hm, sorry I missed those in the description! Neither of them seem to still be present? Am I missing? No jumping spotted and I'm able to re-open the Analysis category. That's unless you mean the jumping the second time around when coming back into the Analysis category? |
@dfeinzimer That's intriguing behavior! 😂 May I ask which Xcode and Sim version are you using? It differs from mine both on iOS 15 and 16…
When you tap "Back" from a sample, it directly jump back to the category grid view, which means sth's wrong with the navigation stack. 🤔 |
Xcode 14.3.1 with a 14 Pro Max sim on iOS 17.0 |
I see the same navigation issue on Xcode 14.3.1 and iPhone 14 Pro Max simulator iOS 16.4. |
Fixes issue described [here](#221 (comment)), where going back from a sample takes the user all the way back to the Categories view, not the view for the category to which the sample belongs. This also means that when the categories are displayed in a sidebar, tapping on a category opens that category in the sidebar, which is expected behavior for this kind of a navigation setup on iOS.
Description
This PR updates the front page of the sample viewer to organize the samples into categories, similar to the old iOS Sample Viewer. The new common design categories were used. All of the currently implemented samples fall under one of the sample categories.
Linked Issue(s)
swift/issues/4229
How To Test
Screenshots
To Discuss