3 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
Gauthier Ambard
cd39384b48 [Collections] Update collections to support iPhone X (#1988)
* [Collections] Update collections to support iPhone X

The collections use the contentInset to compute the width of the cells.
With iPhone X, the width must take into account possible inset of the side.
This patch makes sure that the collection takes into account the adjustedContentInset, which may take the safe area into consideration.

Closes #1980

* Correct respondsToSelect

* Use macro + @available instead of NSInvocation

* Fix CollectionCellsExamples and add a swift version check to the swift example.

* Make UIScrollViewContentInsetAdjustmentAlways the default

* Remove override from CollectionsSectionInsetsExample
2017-10-06 11:32:07 -04:00
Robert Moore
14e00b76ce [Collections] Add "editing" performance example (#1710)
* [Collections] Add "editing" performance example

New example to demonstrate scrolling performance when a collection
contains a large number of cells. "Editing" mode is currently very
inefficient.

* Refactoring, pulling some code into supplemental

* Making cell identifier symbol unique
2017-07-28 13:15:39 -04:00