Nobody
8f69468a2f
Update Material iOS to compile for visionOS
...
PiperOrigin-RevId: 641364760
2024-06-07 14:52:13 -07:00
Nobody
e87240717e
Test Cleanup
...
PiperOrigin-RevId: 516253403
2023-03-13 10:38:56 -07:00
Randall Li
b4fea4a290
[NavigationController] Change deprecation warning to point at guidance and added " 🕘 Schedule time to migrate" message.
...
PiperOrigin-RevId: 491972113
2022-11-30 11:27:00 -08:00
Jeff Verkoeyen
b2bbd50350
Mark all To Be Deprecated APIs as Deprecated.
...
PiperOrigin-RevId: 460478209
2022-07-12 09:13:52 -07:00
David Collazo
8e079b5e1c
Mark symbols to be deprecated
...
Use a branded UINavigationController instead (go/material-ios-app-bars)
PiperOrigin-RevId: 456266820
2022-06-21 08:35:18 -07:00
Nobody
7b8b54a3cf
[MDCButton] titleFontForState: return value is never null, mark as nonnull.
...
PiperOrigin-RevId: 425549752
2022-02-01 00:14:07 -08:00
Jeff Verkoeyen
6cac70189f
Remove all pre-iOS 12 logic.
...
PiperOrigin-RevId: 401055631
2021-10-05 12:58:59 -07:00
Jeff Verkoeyen
0e500eac46
Remove all pre-iOS 12 logic.
...
PiperOrigin-RevId: 401010128
2021-10-05 09:57:14 -07:00
Jeff Verkoeyen
c34de39e30
Internal change.
...
PiperOrigin-RevId: 397316843
2021-09-17 07:45:01 -07:00
Randall Li
502bc5d910
Ran a Swift formatter
...
PiperOrigin-RevId: 395947664
2021-09-10 09:48:14 -07:00
Jeff Verkoeyen
ec44b12ee9
Internal change
...
PiperOrigin-RevId: 394725753
2021-09-03 11:44:01 -07:00
Jeff Verkoeyen
96cfc7e331
Internal change
...
PiperOrigin-RevId: 394241967
2021-09-01 08:56:53 -07:00
Cody Weaver
ce90d137bc
[MDFInternationalization] Remove mdf_imageWithHorizontallyFlippedOrientation in favor of system API, imageWithHorizontallyFlippedOrientation.
...
PiperOrigin-RevId: 391987777
2021-08-20 07:33:33 -07:00
Cody Weaver
08d01596df
[MultipleComponents] Remove mdf_effectiveUserInterfaceLayoutDirection in favor of the system API effectiveUserInterfaceLayoutDirection that was added in iOS 10.
...
PiperOrigin-RevId: 391307973
2021-08-17 09:30:47 -07:00
Jeff Verkoeyen
f1c40e8bb3
[NavigationBar] Annotate it as To Be Deprecated.
...
We will be dropping all runtime support for AppBar at the start of 2022q3, with intent to delete the component entirely one year later.
PiperOrigin-RevId: 390601038
2021-08-13 06:45:34 -07:00
Jan Philipp Sachse
8ebb509555
Add MDCNavigationBarTitleViewLayoutBehaviorCenterFit.
...
This new option keeps the navigation bar's title view at its intrinsicContentSize's width.
PiperOrigin-RevId: 375701202
2021-05-25 07:39:12 -07:00
Jeff Verkoeyen
4bd9eccdf1
Upgrade Swift to 5.
...
PiperOrigin-RevId: 366081670
2021-03-31 11:47:03 -07:00
Yarden Eitan
84b83bdb8b
Internal Change
...
PiperOrigin-RevId: 364584460
2021-03-23 10:11:16 -07:00
Jeff Verkoeyen
29803522c6
Optimizing imports
...
PiperOrigin-RevId: 357185525
2021-02-12 07:27:05 -08:00
Jeff Verkoeyen
b3fa42005b
Optimizing imports
...
PiperOrigin-RevId: 356966407
2021-02-11 07:12:37 -08:00
Jeff Verkoeyen
9f9b452b3a
Optimizing imports
...
PiperOrigin-RevId: 356850973
2021-02-10 16:15:17 -08:00
Yarden Eitan
654c6cfdd7
[NavigationBar] Deprecate typography themer APIs.
...
PiperOrigin-RevId: 333366922
2020-09-23 14:10:35 -07:00
Yarden Eitan
2294616a4d
[NavigationBar] Deprecate color themer APIs.
...
PiperOrigin-RevId: 333366577
2020-09-23 14:01:52 -07:00
Jeff Verkoeyen
fbb1f20aa2
Internal change
...
PiperOrigin-RevId: 332151481
2020-09-16 21:01:21 -07:00
Bryan Oltman
36430632ed
[NavigationBar] Add example to demonstrate how to to set source for popover alert on iPad.
...
PiperOrigin-RevId: 327823139
2020-08-21 09:36:02 -07:00
Bryan Oltman
e28711a930
[NavigationBar] Delete supplemental code from Swift examples
...
PiperOrigin-RevId: 327653048
2020-08-20 10:37:42 -07:00
Jeff Verkoeyen
d7ff705337
Drop support for iOS 9.
...
PiperOrigin-RevId: 326015653
2020-08-11 07:21:40 -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
Jeff Verkoeyen
b380dc5897
[NavigationBar] Mark more apis as to-be-deprecated.
...
PiperOrigin-RevId: 318869458
2020-06-29 12:32:34 -07:00
Andrew Overton
0a36a3a12b
[MDC-iOS] Fix broken links
...
This CL fixes some longstanding and some newly broken links.
PiperOrigin-RevId: 311351416
2020-05-13 10:09:44 -07:00
Jeff Verkoeyen
9e3ab8703b
[NavigationBar] Add example snapshot tests.
...
PiperOrigin-RevId: 309345877
2020-04-30 19:36:22 -07:00
Andrew Overton
7814b0c460
Replace App Bar docs
...
This PR replaces the AppBar README. The content is mostly the same, I just had to restructure it in order to fit the new template.
Closes https://github.com/material-components/material-components-ios/pull/9981
PiperOrigin-RevId: 309097690
2020-04-29 14:32:52 -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
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
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
Jeff Verkoeyen
23878968f4
[NavigationBar] Remove default insets for leading titles.
...
After this change, the default behavior for MDCNavigationBar's titleInsets property will be dynamic. In leading mode, the default insets will be 0,0,0,0, while in centered mode the title insets will continue to be 0,16,0,16. If the titleInsets property is explicitly set then the explicitly set value will be preferred indefinitely.
PiperOrigin-RevId: 301632853
2020-03-18 11:41:35 -07:00
Tony Lai
8a3118161c
Problem: The title label does not resize in an edge case when the user enables bold text in settings->display & brightness and then opening the app if the title label was already on the screen.
...
Root cause: The title label's size is calculated with the text and currently it does not recalculate upon the app entering the foreground
Solution: Force MDCAppNavigationBar to layout subviews on app entering foreground
PiperOrigin-RevId: 301604933
2020-03-18 09:47:13 -07:00
featherless
162a063bda
[bazel] Remove all unused mdc_objc_library loads. ( #9376 )
...
Found by searching for all references to `\bmdc_objc_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/9363
2020-01-02 14:34:36 -05:00
featherless
0a0bc4b47b
[automated] Ran buildifier on all BUILD files. ( #9366 )
...
```
find . -name BUILD | xargs buildifier
```
This is in preparation of https://github.com/material-components/material-components-ios/issues/9363
2020-01-02 10:05:07 -05:00
featherless
5425884431
[examples] Annotate all catalogShouldHideNavigation invocations with @objc. ( #8791 )
...
Context:
Due to changes in the Swift runtime over the past years, methods that are considered "optional" in Objective-C need to have @objc annotations in order for Objective-C to be able to perform `respondsToSelector:` invocations.
Problem:
Many of our examples had not annotated their `catalogShouldHideNavigation` methods with the `@objc` annotation, causing the Catalog to wrap the examples in a container app bar view controller. The reason most of these examples would implement `catalogShouldHideNavigation` is because they are managing their own navigation (e.g. to demonstrate AppBar functionality), so this would often result in duplicate AppBars appearing in the example.
The fix:
All `catalogShouldHideNavigation` Swift methods have been annotated with `@objc`.
Fixes https://github.com/material-components/material-components-ios/issues/7576
Fixes https://github.com/material-components/material-components-ios/issues/7578
2019-11-12 16:54:55 -05:00
Robert Moore
8cebc56185
[*] Suppress deprecation warnings. ( #8481 )
...
Suppresses deprecation warnings either for implementations of our own
deprecated APIs or for their use in tests and elsewhere.
Part of #7537
2019-09-23 12:48:42 -04:00
Bryan Oltman
14febdb6a1
Delete unused MDCNavigationBar textAlignment property ( #8411 )
2019-09-09 16:42:36 -04:00
Wenyu Zhang
5f0fadc504
[NavigationBar] Stop running swift tests on Autobot. ( #8272 )
...
closes https://github.com/material-components/material-components-ios/issues/8271 .
This change only affects Autobot runner. The work to re-enable this flag for Autobot is tracked in #8249 .
### Context
Error occurs when testing using Bazel.
```
Test Case '-[components_NavigationBar_unit_test_swift_sources.NavigationBarButtonLayoutTests testChangingTitleFontUpdatesLayoutToMatchSizeThatFitsWidth]' started.
Child process terminated with signal 11: Segmentation fault
```
2019-08-12 11:54:23 -04:00
Robert Moore
bbdf2f459f
[NavigationBar] Use Starlark macros. ( #8176 )
...
Add more Starlark macro use to the BUILD file. Makes releasing easier.
Part of #8150
2019-08-02 10:28:48 -04:00
Wenyu Zhang
4191d03853
[NavigationBar] Add doc to note UIBarButtonItem cannot be used in UIPopoverPresentationController. ( #8129 )
...
Part of https://github.com/material-components/material-components-ios/issues/7907 .
2019-07-30 16:11:12 -04:00
Cody Weaver
60c60f288c
[NavigationBar] Add MaterialElevation support. ( #8115 )
...
Adds conformance to MDCElevatable and MDCElevationOverriding to
MDCNavigationBar.
Closes #8016
2019-07-29 20:47:46 -07:00
Robert Moore
8dcf1e4a56
[*] Remove RTL snapshot method overrides. ( #7996 )
...
With #7986 , most snapshot tests began overriding a method that had nearly the
same behavior.
2019-07-22 21:11:17 -07:00
Cody Weaver
3d9d2db94d
[NavigationBar] Add traitCollectionDidChange block. ( #7918 )
...
The navigation bar needs an API so clients can hook-in to trait collection changes. This additionally passes the navigation bar as a parameter so clients can modify the flexible header within the block.
Closes #7919
2019-07-15 12:43:00 -07:00
Yarden Eitan
3b4bc76524
[NavigationBar] Adds the Ripple behavior to NavigationBar. ( #7602 )
...
## Related links
* Bug: Closes #7379
* Ripple: [Ripple](https://github.com/material-components/material-components-ios/tree/develop/components/Ripple )
## Introduction
This PR allows enabling the Ripple Behavior for [`MDCNavigationBar`](https://github.com/material-components/material-components-ios/tree/develop/components/NavigationBar ) by way of `MDCButtonBar` by enabling the ripple behavior of the internal `MDCButton`s. This behavior is an opt in flag property added to MDCNavigationBar, `enableRippleBehavior`. This improves the visual touch feedback for our users as MDCInkView didn't support our current motion guidelines. We are also marking any of the Ink APIs ToBeDeprecated as part of the [Deprecation Policy](cb6b8e9599/contributing/deprecation_policy.md (step-4-add-a-comment-to-the-api-indicating-that-it-will-be-deprecated) ).
## Videos
| Before | After |
| - | - |
|||
2019-06-15 17:53:35 -04:00