274 Commits

Author SHA1 Message Date
Yarden Eitan
e5a68ba77e [BottomNavigation] Adds opt-in from MDCShadowLayer to MDCShadow.
PiperOrigin-RevId: 369815810
2021-04-22 00:31:27 -07:00
Jeff Verkoeyen
9638b0bfa4 Annotate APIs with tvOS availability.
PiperOrigin-RevId: 368748687
2021-04-15 17:17:22 -07:00
Jeff Verkoeyen
a8e4831fd0 Flattening all unit tests into single directories as per convention.
PiperOrigin-RevId: 367426300
2021-04-08 07:33:29 -07:00
Jeff Verkoeyen
9a49fd96f9 Internal change.
PiperOrigin-RevId: 366342462
2021-04-01 15:26:22 -07:00
Alyssa Weiss
0f99d29856 Only initialize blur effect view if it is not hidden.
PiperOrigin-RevId: 363475874
2021-03-17 12:12:23 -07:00
Jeff Verkoeyen
bf652865ce Fix build errors related to the Shadow component.
PiperOrigin-RevId: 363410431
2021-03-17 07:00:50 -07:00
Nobody
4f12b7da71 Update hidden state logic to address a race condition occurring when showing/hiding the navigation bar multiple times before the animation ends.
PiperOrigin-RevId: 361224275
2021-03-05 14:23:59 -08:00
Jeff Verkoeyen
b190b1c334 Annotate APIs as only supporting iOS 12+.
PiperOrigin-RevId: 358926113
2021-02-22 16:09:26 -08:00
Nobody
cdf7ffccc2 Honor the animated param when changing the hidden state of the bottom navigation bar.
PiperOrigin-RevId: 357221948
2021-02-12 10:45:59 -08:00
Jeff Verkoeyen
1abdf16760 Optimizing imports
PiperOrigin-RevId: 357185990
2021-02-12 07:36:41 -08:00
Jeff Verkoeyen
c53f44398e Optimizing imports
PiperOrigin-RevId: 357185618
2021-02-12 07:29:28 -08:00
Alyssa Weiss
4b4b0f3d7d Ensure correct Voiceover behavior in iOS 14.
PiperOrigin-RevId: 355892745
2021-02-05 11:37:07 -08:00
Alyssa Weiss
afe4105deb Fix imports for MDCBottomNavigationItemView.
PiperOrigin-RevId: 354160330
2021-01-27 13:32:12 -08:00
Alyssa Weiss
3a4270e820 Remove unused 'kOfAnnouncement' and fix imports.
PiperOrigin-RevId: 354139829
2021-01-27 12:02:01 -08:00
Andrew Overton
b42de42c87 Additional requested docs changes
Closes https://github.com/material-components/material-components-ios/pull/10147

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10147 from andrewoverton:material-io-bugs-2 d0e70d8a8c4b66e6d3b22c2fbe3408a60d8771ee
PiperOrigin-RevId: 348026588
2020-12-17 08:33:58 -08:00
Andrew Overton
fb4d874f62 [Multiple components] Change component README ToCs to bold paragraph style
PiperOrigin-RevId: 346365613
2020-12-08 11:09:33 -08:00
Andrew Overton
f1d4dd25f0 [ProgressView] Add ProgressIndicators.md for material.io
The Material progress indicator component is broken down into two distinct iOS components, ProgressView and ActivityIndicator. This PR adds a new markdown file, `ProgressIndicators.md`, to be displayed for the progress indicator component on material.io, and leaves both the ProgressView and ActivityIndicator READMEs intact.

Preview the doc here: https://github.com/andrewoverton/material-components-ios/blob/material-io-progress-indicators/components/ProgressView/ProgressIndicators.md

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

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10136 from andrewoverton:material-io-progress-indicators 4daaa8cd80cd9bbf44c7d642324b591def841934
PiperOrigin-RevId: 345734425
2020-12-04 12:36:03 -08:00
Andrew Overton
62ccb5c72f [Multiple components] Audit recent docs changes, part 2
Closes https://github.com/material-components/material-components-ios/pull/10135

PiperOrigin-RevId: 345473101
2020-12-03 09:54:14 -08:00
Bryan Oltman
d9e294ab00 [BottomNavigation] Add fade animation to bottom navigation item title label on (de)selection.
PiperOrigin-RevId: 341464300
2020-11-09 12:44:24 -08:00
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