2 Commits

Author SHA1 Message Date
Cody Weaver
50307bb330
[Container] Fix colorScheme and typographyScheme to be nonnull. (#6699)
## Introduction
Before we move container scheme to ready we need to have both the `colorScheme` and `typographyScheme` nonnull. By making colorScheme and typographyScheme of MDCContainerScheming nonnull, clients will reduce the amount of conditional checks required in their apps and reduce a category of potential errors (accidentally passing nil to a nonnull parameter).

## The problem
Both `colorScheme` and `typographyScheme` were nullable in the container scheme making it harder for clients to use the container scheme throughout their app on non Material UIElements, i.e. UIView.backgroundColor

## The fix
Make both of these properties nonnull.

## Additional work
- [x]  I had to update the swift examples to not be optional and I additionally removed the nil checks from the ObjC examples.
2019-02-27 15:47:26 -05:00
Wenyu Zhang
4629b52279
[MDC Dialogs] add an example for themed button with emphasis (#6600)
Part of Internal issue b/123214915.

Screenshot after adding this example:
![simulator screen shot - iphone xs - 2019-02-11 at 18 15 27](https://user-images.githubusercontent.com/8836258/52600278-14434300-2e29-11e9-82f0-b6b0a421b410.png)
2019-02-12 16:11:18 -05:00