5 Commits

Author SHA1 Message Date
Yurii Samsoniuk
2a96682230 Replace unnecessary imports with forward declarations (#2429)
* [Themes] Remove unnecessary imports.

* [TextFields] Remove unnecessary imports.

* [Typography] Do not use an umbrella header inside of a component.

* [Snackbar] Do not use self umbrella header.

* [ActivityIndicator] Do not use self umbrella header.

* [AppBar] Use umbrella headers.

* [AppBar] Remove self import header.

* [ButtonBar] Removed self umbrella header imports.

* [Buttons] Removed self umbrella header imports.

* [Collections] Update imports.

* [Dialogs] Moved import into an m file.

* [Collections] Fixed imports.

* [FeatureHighlight] Removed self umbrealla imports.

* [HeaderStackView] Reordered imports.

* [Ink] Replaced imports with forward declarations.

* [Slider] Replaced self umbrella import use.

* [Snackbar] Removed self umbrella header import.

* [Tabs] Changed math import. Replaced self umbrella header import.

* [Icons] Removed unnecessary imports.

* [Overlay] Replaced umbrella header import.

* [ShapeLibrary] Replace Shapes imports with an umbrella header.

* [Shapes] Replaced imports with forward declarations.

* [AppBar] Replace import with a forward declaration.

* [Examples] Updated imports.

* Fixed conflicting imports

* Added space between different import categories
2017-11-16 18:25:06 -05:00
featherless
c9ef0366c1
[BottomSheet] Convert to Material Motion. (#2400)
* Convert.

* Remove hard toss.

* Remove local dependency on transitioning.

* Bump version.

* Remove deprecation.

* Fix headers.

* Stop animations when gestures start.

* Update dependencies.

* CGRect.
2017-11-15 18:22:45 -05:00
featherless
d30b396671
[BottomSheet] Add a trackingScrollView API to the bottom sheet controller. (#2420)
This API allows clients to specify which view should be considered as the tracking scroll view for the bottom sheet gestural behaviors.

The API name is consistent with the FlexibleHeader component's similar API.
2017-11-14 12:56:47 -05:00
Andrés
c6e8803c86 [BottomSheet] Safe Area fixes (#2392)
* [BottomSheet] iPhone X fixes

* [BottomSheet] Use CGRectGetHeight()

* Review

* CGRectGetHeight
2017-11-14 08:26:15 -05:00
Sam Morrison
681b2de2fd [Bottom sheet] component (#1297)
* First bottom sheet commit

* Add empty files of needed classes

* Do animation using presentation controller and transitioning delegate

* Implement bottom sheet transition using just a UIPresentationController

* Tap background to dismiss

* Clean up and document bottom sheet interface

* Minor cleanup

* Fix usePreferredHeight

* Toggle usePreferredHeight

* Let UIPresentationController layout sheet view

* Expand bottom sheet delegate api

* Remove automaticallyDismissBottomSheet and usePreferredHeight

* Remove shouldDismiss

* Delegate method docs

* Allow custom bottom sheet widths

* Animate sheet view to new frame when rotating bottom sheet

* Fix sheet view starting in bad location

* Specify float for background color

* Clean up bottom sheet presentation controller

* Minor cleanup

* Copy cl/148818444

* GOO -> MDC

* s/draging/dragging/

* Use init instead of initWithCoder

* Bottom sheet example description

* Big improvements to bottom sheet examples

* MDCBottomSheetTransitionController

* Wrap up everything in MDCBottomSheetViewController

* Move all examples to MDCBottomSheetViewController

* Move supplemental code to BottomSheetSupplemental

* bottomSheetPresentationControllerDidDismissBottomSheet

* Check delegate implements methods before calling

* MDCBottomSheetViewController -> MDCBottomSheetController

* Add comments for MDCBottomSheetController

* Use MDCMath

* Change style of preferredContentSize setter

* Support preferredContentSize.height

* Add an example layed out using Autolayout

* More correctly set frame for non scrolling content

* Minor improvements to examples

* Small fixes for examples

* Use umbrella import headers

* Show custom preferredContentSize width in example

* MDCBottomSheetTransitionController now vends a presentation controller

* Expose bottom sheet presentation controller on UIViewController

* Final review comments
2017-06-21 15:51:35 -04:00