8 Commits

Author SHA1 Message Date
Jeff Verkoeyen
08051b7bda Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 400798440
2021-10-04 13:20:55 -07:00
Wenyu Zhang
be3c97421b [Banner] Apply container theme in examples.
PiperOrigin-RevId: 313820573
2020-05-29 11:45:45 -07:00
Jeff Verkoeyen
a9512e0dba [Banner] Add snapshot test hooks to the examples.
PiperOrigin-RevId: 308163954
2020-04-23 17:32:40 -07:00
Robert Moore
8eb7296dab
[Catalog] Fix container scheme properties. (#9192)
Making remaining examples use protocol for container schemes to match the
project's expected convention.

Found while reviewing #9188
2019-12-09 10:48:25 -05:00
Wenyu Zhang
0fcef85a44
[Banner] Post accessibility notification when Banner shows on the screen in examples. (#9111)
closes https://github.com/material-components/material-components-ios/issues/9079.
2019-12-05 12:00:51 -05:00
Wenyu Zhang
5e98e17c97
[Banner] Fix top layout constraint in Autolayout example on pre iOS 11 OSes. (#9042)
closes https://github.com/material-components/material-components-ios/issues/8824.

Previously, the banner under autolayout constraints relied on `layoutMarginsGuide` which takes `addtionSafeAreaInsets` from flexibleHeader for iOS 11+. This fix switches it back to using `topLayoutGuide` to make it compatible with iOS 7+ when iOS11 is not avaliable.

| Screenshot on iPhone7 10.2 after the fix |
| --- |
| ![Simulator Screen Shot - iPhone 7 - 2019-12-02 at 16 06 01](https://user-images.githubusercontent.com/8836258/69995422-08db1880-151e-11ea-8ee9-23e580cccd79.png) |
2019-12-03 11:03:02 -05:00
Wenyu Zhang
e58c550a21
[Banner] use UITextView for text instead of UILabel. (#7993)
closes #7990 

This API change enables more flexibility on the text configuration on banner. Minor visual difference was generated by UITextView's implementation.
2019-07-24 16:23:50 -04:00
Wenyu Zhang
37a495b04a
[Banner] Add intrinsicContentSize support with an example. (#7620)
Previously, `intrinsicContentSize` was not supported in MDCBannerView, which means users have to specify layout constraints for width and height manually. After adding `intrinsicContentSize` support, users will only need to specify width constraints for banner to show it properly. This implementation and behavior matches UITextView.

Screenshot:
![Simulator Screen Shot - iPhone 7 - 2019-06-17 at 17 18 30](https://user-images.githubusercontent.com/8836258/59637507-f3b32e80-9123-11e9-8133-7108c1a7824e.png)
2019-06-25 13:11:49 -04:00