255 Commits

Author SHA1 Message Date
Alyssa Weiss
8ef317c162 Update ink and ripple handling for long press when LargeContentViewer is enabled
PiperOrigin-RevId: 332909523
2020-09-21 12:40:28 -07:00
Jeff Verkoeyen
fbb1f20aa2 Internal change
PiperOrigin-RevId: 332151481
2020-09-16 21:01:21 -07:00
Bryan Oltman
da4b8f7c7f Fix mdc_elevationDidChangeBlock block parameter types for Xcode 12
PiperOrigin-RevId: 331843566
2020-09-15 13:39:15 -07:00
Bryan Oltman
bb71d6bcbb [BottomNavigation] Add navigationBarHidden property to MDCBottomNavigationBarController.
PiperOrigin-RevId: 331145190
2020-09-11 07:40:10 -07:00
Alyssa Weiss
ef9fd05593 Remove all checks for iOS 10 availability now that components support iOS 10+
PiperOrigin-RevId: 331076636
2020-09-10 21:02:06 -07:00
Alyssa Weiss
6878fc6344 Remove no longer used string bundle references
PiperOrigin-RevId: 330974664
2020-09-10 11:12:23 -07:00
Yarden Eitan
5d3662f0a2 [BottomNavigation] Provide an API to set the bar's height.
PiperOrigin-RevId: 330937608
2020-09-10 08:05:49 -07:00
Bryan Oltman
d79d9a86c5 [BottomNavigation] Remove supplemental directory from examples.
PiperOrigin-RevId: 330739970
2020-09-09 09:42:44 -07:00
Alyssa Weiss
898e373ea2 Update Bottom Navigation Item View accessibility traits so that VoiceOver works correctly on iOS 14.
PiperOrigin-RevId: 330732740
2020-09-09 09:03:59 -07:00
Alyssa Weiss
01b1cbaa66 Remove pre-iOS 10 handling for voiceover now that components support iOS 10+
PiperOrigin-RevId: 329963061
2020-09-03 11:54:09 -07:00
Yarden Eitan
8d7bc88a11 [Ink] Official deprecation of Ink.
Please use the Ripple component.

PiperOrigin-RevId: 329771765
2020-09-02 13:07:40 -07:00
Wenyu Zhang
ac3c854dc4 [BottomNavigation] Align barItemsBottomAnchor with safeAreaInsets.
PiperOrigin-RevId: 328742149
2020-08-27 08:36:14 -07:00
Wenyu Zhang
f854548b97 [BottomNavigation] Delete deprecated sizeThatFitsIncludesSafeArea property.
PiperOrigin-RevId: 328623723
2020-08-26 15:44:01 -07:00
Alyssa Weiss
fb9eec8ba0 Set default horizontal item padding to 0
PiperOrigin-RevId: 328352160
2020-08-25 10:09:48 -07:00
Alyssa Weiss
d60a9203a8 Clarify wording to reflect that enableRippleBehavior is To Be Deprecated and can still be used in new code
PiperOrigin-RevId: 328197965
2020-08-24 13:21:25 -07:00
Alyssa Weiss
915bc063fb Update accessibility logic when switching selected view controllers so that VoiceOver will always switch to a new element visible on screen
PiperOrigin-RevId: 327323860
2020-08-18 15:56:48 -07:00
Andrew Overton
b22eef526f [BottomNavigation] Move MDCBottomNavigationBarController to main podspec
PiperOrigin-RevId: 326698570
2020-08-14 11:48:35 -07:00
Alyssa Weiss
4a3058d591 [BottomNavigation] modify layouts with division to use floor(), as not using this was causing some non integer pixel values, which then resulted in a blurry layout
PiperOrigin-RevId: 326527243
2020-08-13 14:45:00 -07:00
Alyssa Weiss
e310d3c313 [MDC-iOS/Bottom Navigation] Updating handling of ripple/ink for long presses when large content view is enabled
PiperOrigin-RevId: 324003079
2020-07-30 08:06:25 -07:00
Andrew Overton
07c46757cc Replace material.io API doc links with links to the relevant header f…
This PR replaces API links containing "/api-docs/" with links to suitable header files in GitHub because the site previously linked to is being taken down and replaced with something that won't handle API docs.

Closes https://github.com/material-components/material-components-ios/pull/10045

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10045 from andrewoverton:replace-mio-api-docs-with-github-links 0d6e56cc11d0c147366a4f6cde829d8b51567ecc
PiperOrigin-RevId: 323424362
2020-07-27 13:09:23 -07:00
Alyssa Weiss
3481620f18 When large content view is enabled, on long presses it will correctly switch to the last selected item
PiperOrigin-RevId: 323167120
2020-07-25 09:27:07 -07:00
Jeff Verkoeyen
2a912f3ee6 [BottomNavigation] Mark more apis as to-be-deprecated.
PiperOrigin-RevId: 318869945
2020-06-29 12:40:42 -07:00
Bryan Oltman
7e25289163 [BottomNavigation] Add check for existence of UIPointerInteraction to prevent iOS 13 beta crashes.
PiperOrigin-RevId: 318481794
2020-06-26 09:07:44 -07:00
Andrew Overton
55d64ef799 [BottomNavigation] Re-order TOC in README
PiperOrigin-RevId: 317105857
2020-06-18 08:23:36 -07:00
Andrew Overton
8759533368 [BottomNavigation] Replace bottom navigation README
This PR replaces the bottom navigation readme as part of b/151662303.

Closes https://github.com/material-components/material-components-ios/pull/10005

PiperOrigin-RevId: 314605625
2020-06-03 14:35:12 -07:00
Nobody
70716800b8 Internal change
PiperOrigin-RevId: 312085611
2020-05-18 16:41:12 +00:00
Rob Moore
5b2b452bb5 [BottomNavigation] Correct accessibilityLabel docs
The documentation for `accessibilityLabel` did not reflect the latest support for receiving it from the UITabBarItem.

PiperOrigin-RevId: 309999763
2020-05-05 12:37:47 -07:00
Wenyu Zhang
a3381717f7
Fix the bazel BUILD files and snapshot that were restored unintentionally.(#9983) 2020-04-29 11:00:00 -04:00
Jeff Verkoeyen
92254ea119 Rename all icons to an ic_<#name#> convention.
PiperOrigin-RevId: 308232277
2020-04-24 04:33:51 -07:00
Randall Li
0100cfe414 [MDC-iOS/BottomSheet] Fix dismissOnDraggingDownSheet behavior
The bottom sheet incorrectly allowed the sheet to be drag dismissed when `dismissOnDraggingDownSheet` was set to NO.

This change permits the gesture to dismiss to begin but prevents it from actually closing the sheet.

https://github.com/material-components/material-components-ios/issues/9723

Closes https://github.com/material-components/material-components-ios/pull/9885

PiperOrigin-RevId: 307802500
2020-04-22 06:21:26 -07:00
Jeff Verkoeyen
8abbb099a9 Delete all bazel support.
We no longer support bazel.

This PR deletes everything related to bazel support from our repo.

Closes https://github.com/material-components/material-components-ios/pull/9968

PiperOrigin-RevId: 306227127
2020-04-13 07:13:47 -07:00
Bryan Oltman
ef1cc6dfd7 [BottomNavigation] Shrink UIPointerEffect frame size to fit content of navigation item views.
This brings BottomNavigation more in-line with UITabBar - see the Photos app for reference.

PiperOrigin-RevId: 305129590
2020-04-06 15:23:49 -07:00
Bryan Oltman
e5f1498d45 [BottomNavigation] Add UIPointerHighlightEffects to BottomNavigation button items.
PiperOrigin-RevId: 304219922
2020-04-01 11:02:53 -07:00
Cody Weaver
fdf87c5995 [MDC/ColorScheme] Remove usage of init within MDC.
We recommend using `initWithDefaults` and we should follow the recommendation. This change removes all usage of `init` within MDC components in order to let us remove that initializer from the public surface.

PiperOrigin-RevId: 302958447
2020-03-25 13:36:51 -07:00
Bryan Oltman
b3d6e47e24 [BottomNavigation] Move protocol definitions into separate header files
PiperOrigin-RevId: 301871205
2020-03-19 12:29:59 -07:00
Andrew Overton
c068063cad
[BottomNavigation] Add horizontal padding property to MDCBottomNavigationBar (#9765)
This PR makes what was a hard coded horizontal padding value a configurable property on MDCBottomNavigationBar.

Closes #9307
2020-02-21 14:46:43 -05:00
Randall Li
02efdd1889
[Material][Availability] Migrates Bottom Navigation to MDCAvailability. (#9717)
[Material][Availability] Migrates Bottom Navigation to MDCAvailability.
2020-02-14 14:59:36 -05:00
Randall Li
fa62718bc5
add deps on availability for a bunch of components (#9679)
* add Availability build file

* add Button deps on availability

* added elevation

* corrected include statements to use import of the umbrella files

* revert unwanted changes

* spaces

* clangformat

* add availability dep

* added buttom nav deps on availibility

* Add FeatureHighlight build dep for Availability

* Add Availability build dep to FeatureHighlight private

* Add missing =

* fixed tabs spacing

Co-authored-by: Bryan Oltman <bryanoltman@gmail.com>
2020-02-11 13:14:09 -05:00
Nobody
770095c612 Adds availability macro for conditionally compiling OS sensitive code.
PiperOrigin-RevId: 293067907
2020-02-03 20:55:35 -08:00
Rob Moore
9c71657ac0 [BottomNavigation] Layout item views after title changes.
When an item's title changes, the Bottom Navigation and its item views should
trigger a layout pass.

Testing
-------
This test cannot be tested easily with Snapshot tests because the Snapshot
test frameworks automatically trigger a layout pass before rendering the view
hierarchy. Testing has to be done manually, most easily through an Example.

1. Set the item's title to an initial value.
2. After the Bottom Navigation is visible, change the title of one of its
   items.

Closes #9519

PiperOrigin-RevId: 292155675
2020-01-29 09:23:06 -08:00
Eric Lee
69d39caeb9 [BottomNavigation] Adds large content viewer support (#9451)
Introduces support for `UILargeContentViewer` and its associated classes and protocols on iOS 13 and later. 

*   On iOS 13 and later, `MDCBottomNavigationBar` will present a large content view when the platform's requirements are met.
    *   Larger Text is enabled with an `Accessibility...` size selected.
    *   User long-presses on a Bar Item.
*   On iOS 9-12, this behavior will remain associated with the `MDCBottomNavigationBarController` only, and the view will not have this behavior built-in.

Closes #8343
2020-01-25 22:26:36 -05:00
Robert Moore
e51a83afeb
[BottomNavigation] Fix bug in delegate method call (#9489)
[BottomNavigation] Fix bug in delegate method call

The MDCBottomNavigationBarController checks the wrong delegate method before calling `-bottomNavigationBarController:shouldSelectViewController:`. This can lead to crashes in clients that do not implement this method, but implement `-bottomNavigationBarController:didSelectViewController:`.

Fixes #9483
2020-01-24 15:01:19 -05:00
Wenyu Zhang
ab901f7654
Revert "[ColorScheme] deprecate init method and update documentation to reflect its purpose. (#9391)" (#9396)
This reverts commit 5fc6ec2f96e69f1e4c579ca69344557ad83329f2.
2020-01-09 13:54:20 -05:00
Wenyu Zhang
5fc6ec2f96
[ColorScheme] deprecate init method and update documentation to reflect its purpose. (#9391)
closes https://github.com/material-components/material-components-ios/issues/9390
2020-01-08 18:07:01 -05:00
featherless
b7cf0de915
[bazel] Remove all unused swift_library load statements. (#9369)
Found by searching for all references to `\bswift_library` and removing load statements from files that only returned one result.

Clean up as part of https://github.com/material-components/material-components-ios/issues/5491
2020-01-02 11:01:31 -05:00
Robert Moore
19c810d61d
[BottomNavigation] Use NotoNastaliq for Arabic/RTL tests. (#9260)
NotoNastaliq is a font with a greater line height than most other fonts. Using
it for Arabic/RTL fonts results in greater exercise of the view's layout.

Part of #6552
2019-12-13 10:26:25 -05:00
Andrew Overton
d89eb249aa
delete-MDCBottomNavigationBarTypographyThemer (#9234)
delete MDCBottomNavigationBarTypographyThemer. Closes #9158.
2019-12-11 10:52:08 -05:00
Bryan Oltman
1ae1e4cbbb
[BottomNavigation] Delete MDCBottomNavigationBarColorThemer (#9198)
Deletes MDCBottomNavigationBarColorThemer. MDCBottomNavigationBarColorThemer has been deprecated and has no internal usage.

Fixes #9130
Fixes #9161
2019-12-09 14:17:42 -05:00
Andrew Overton
3a92bc4acb
Deprecate MDCBottomNavigationTypography themer and update docs (#9156)
Related to #9158.
2019-12-06 14:02:06 -05:00
Bryan Oltman
3b0bc4fda3
[BottomNavigation] Migrate MDCBottomNavigationBarColorThemer use to theming extension (#9142)
Migrate `MDCBottomNavigationBarColorThemer` logic to theming extensions to prepare for the eventual deletion of `MDCBottomNavigationBarColorThemer`.

Part of #9130
2019-12-06 12:43:55 -05:00