Skip to content
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

Adding Drawer controller #344

Merged
merged 17 commits into from Jan 6, 2021
Merged

Adding Drawer controller #344

merged 17 commits into from Jan 6, 2021

Conversation

kubalani
Copy link
Contributor

@kubalani kubalani commented Dec 16, 2020

Platforms Impacted

  • iOS
  • macOS

Description of changes

Adding Drawer Controller SwitUI component. Added design tokens for shadow modification.
Currently the drawer only supports slide out cases for left and right presentation style.

Edit:

Updated presentations style to override modal screen size.
Screen Shot 2020-12-21 at 6 33 11 PM

Left Presentation Style

Screen Shot 2020-12-15 at 7 22 34 PM

Right Presentation Style

Screen Shot 2020-12-15 at 7 22 47 PM

Presentation with Dimmed background

Screen Shot 2020-12-15 at 7 22 59 PM

Pull request checklist

This PR has considered:

  • Light and Dark appearances
  • VoiceOver and Keyboard Accessibility
  • Internationalization and Right to Left layouts
  • Different resolutions (1x, 2x, 3x)
  • Size classes and window sizes (iPhone vs iPad, notched devices, multitasking, different window sizes, etc)
Microsoft Reviewers: Open in CodeFlow

@kubalani kubalani added the vnext-prototype Changes meant to be merged to the vnext-prototype branch. label Dec 16, 2020
@kubalani kubalani requested review from a team as code owners December 16, 2020 03:25
@harrieshin
Copy link
Contributor

why is the drawer not shown on top of the nav bar?

@kubalani kubalani changed the title Kubalani/drawerv2 Adding Drawer controller Dec 16, 2020
ios/FluentUI.Demo/FluentUI.Demo/Demos.swift Outdated Show resolved Hide resolved
ios/FluentUI/Drawer/DrawerController.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
@kubalani
Copy link
Contributor Author

why is the drawer not shown on top of the nav bar?

The API of DemoController is now matched to show full screen.

tools/sgen/input/FluentUIStyle.yml Show resolved Hide resolved
tools/sgen/input/FluentUIStyle.yml Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Show resolved Hide resolved
Copy link
Contributor

@rdeassis rdeassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the issue on the video below is the main blocker.
Figuring out the animation comment might solve that comment along with this bug:

drawer_vnext_reposition_present_bug.mov

ios/FluentUI/DrawerVnext/Drawer.swift Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
tools/sgen/input/FluentUIStyle.yml Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/SlideOverPanel.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/SlideOverPanel.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
@harrieshin harrieshin added this to To do in vnext controls Jan 4, 2021
Copy link
Contributor

@rdeassis rdeassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing all the comments!
I left a few more (including a bug on the "tap outside to dismiss"), but the .contentShape(Rectangle()) modifier will fix it.

ios/FluentUI/DrawerVnext/Drawer.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/SlideOverPanel.swift Outdated Show resolved Hide resolved
ios/FluentUI/DrawerVnext/SlideOverPanel.swift Outdated Show resolved Hide resolved
vnext controls automation moved this from To do to Reviewer approved Jan 6, 2021
@kubalani
Copy link
Contributor Author

kubalani commented Jan 6, 2021

Thanks for addressing all the comments!
I left a few more (including a bug on the "tap outside to dismiss"), but the .contentShape(Rectangle()) modifier will fix it.

Thanks for reviews. I have been tracking open issues on github

@kubalani kubalani merged commit 8de8d54 into vnext-prototype Jan 6, 2021
vnext controls automation moved this from Reviewer approved to Done Jan 6, 2021
@kubalani kubalani deleted the kubalani/drawerv2 branch January 6, 2021 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vnext-prototype Changes meant to be merged to the vnext-prototype branch.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants