* [Dialogs] Added Example for issue #2860 to Dragons
Added an example to the dialogs examples which shows a dialog from a presented
view controller. Upon dismissal, the content of the view controller (designed to
obviously demark its bounds) shifts due to #2860.
* Changing the dialog content to better illuminate why this example exists.
* Added more informative titles
The presented view controller how has a title which further illustrates the
bounds change since the navigation bar's content shifts too. Also updated the
catalog description.
* Update copyright dates to help kokoro.
Copyright files only during a time range in which they actually existed.
* [Dialogs] Add designated initializer to MDCAlertController
If MDCAlertController does not override the superclasses designated
initializers, then its own designated initializer may never get called.
This can lead to problems. Although the superclass designated
initializers are unavailable in MDCAlertController, they must still have
implementations.
Closes#2775
* Revert to original initialization.
* Add implementation for `-init` that calls the internal initializer
* Adding subclass test
* Removing keys intended for encoding
* [Dialogs] Add BUILD file and test
Adding a single no-op unit test to ensure that Kokoro is actually compiling
the target and that the target settings are correct.
* Fixing test name
* Removing unused package
* Fixing copyright
This change implements the Material Motion spec for the Dialogs component using the Motion Interchange, Animator, and Transitioning APIs.
Many of the existing APIs will be able to be deprecated or made private in the future, though there is considerable existing downstream client usage of many of these APIs so this will need to be done with some care.
The client migration path for this change will look something like this on average:
```objc
// Old API
_transitionController = [[MDCDialogTransitionController alloc] init];
self.transitioningDelegate = _transitionController;
self.modalPresentationStyle = UIModalPresentationCustom;
// New API
self.mdm_transitionController.transition = [[MDCDialogTransition alloc] init];
```
* Added warnings to examples.
* fixed some warnings
* using button sender parameter.
* use button sender in example
* use button sender in example
* removed sender from methods that don’t use it.
* removed sender from methods that don’t use it.
* use button sender in example
* use button sender in example
* use button sender in example
* use button sender in example
* Fixed init of header configurator to use passed in parameter
* removed unused API
* use button sender in example
* Revert "Added warnings to examples."
This reverts commit 91f0480f86cb609c47b00f1346f82de67c31c4e9.
* fixed example: Using the view controllers navigationItem rather than creating a new one.
* removed finished checks from animation blocks in examples.
* reverted id sender checks
* revert id sender check for Flexible header UINavigationBar
* revert clug
* revert clug
* addressing nits
* removed sender check for FeatureHighlightTypicalUseView
* more nits
* Use framework-style imports.
MDFInternationalization is built as a framework, so use the style
recommended to import from the framework (#import <...>).
MotionAnimator and MotionInterchange mixed the normal style import
and the framework style import; settle them on the framework style.
* Update MDCActivityIndicator.m
Re-order to match our style guide.
* Update MDCBottomNavigationBar.m
Re-order to match our style guide.
* Update MDCBottomNavigationItemView.m
Re-order to match style guide.
* Update MDCBottomAppBarView.m
* Update MDCButtonBar.m
* Update MDCAppBarButtonBarBuilder.m
* Update MDCAppBarButtonBarBuilder.m
* Update MDCCollectionViewCell.m
* Update MDCAlertController.m
* Update NavigationBarIconsExample.m
* Update MDCNavigationBar.m
* Update MDCItemBarCell.m
* Update MDCTextField.m
* Update MDCThumbTrack.m
Buttons were previously being sized during `viewDidLoad`, which caused
problems if UIAppearance caused changes to contentEdgeInsets. Instead,
the buttons should be sized before layout of the dialog's subviews.
Also fixing some examples that were incorrectly sizing buttons before
layout.
Closes#1943
* [Dialog] Fix alert controller, title and message take half screen even they are nil
When actionScrollView's height exceed the container view's height. If the contentScrollView's height is very small or 0, we are leaving a huge white spaces for contentScrollView.
* Add an example demostrating the new action and body sizing
* Fix formatting, enable Dynamic Type
Using `[self class]` when loading a bundle can result in missed resources when
a method is called from a subclass. To prevent these errors, components should
be explicit about which class is being used to load bundles.
References #1941 (Components)
All examples now have at least the required `+catalogBreadcrumbs` and `+catalogIsPrimaryDemo`. All examples in the same breadcrumbs path have only one primary demo. There should be only one `-catalogDescription` attached to the primary demo.
Closes#1897
A couple of methods were defined in the main class interface but
implemented in the category. They should be defined in the category and
implemented there as well.
* [ColorThemes] Use umbrella header instead of MDCColorScheme
* [Application] Use umbrella header instead of class header
* [Button] use umbrella header in private header
* [Typography] use umbrella header in private header
* icons using umbrella header in individual icon class
* [Icons] added header to umbrella header
* [collection] umbrella header instead of class header in test
* [Collections] use umbrella header in private header
* [ActivityIndicator] use umbrella header in private header
* [ButtonBar] use umbrella header in private header
* [Dialog] use umbrella header in private header
* [featurehighlight] use umbrella header in private header
* [snackbar] use umbrella header in private header
* [textFields] use umbrella header in private header
* [thumbtrack] use umbrella header in private header
* [Overlay] use umbrella header in private header
also removed spurious ’s’ at end of MaterialOverlay.h file
* [slider] use umbrella header in private header
* [buttonBar] use umbrella header in private header
* [slider] use umbrella header in test
* [Overlay] fixed overlay reference to use umbrella header
* Replacing methods with class properties.
* Updating docs to reflect new Swift call style.
* Updating examples.
* Updating ObjC examples to use dot syntax
* reorganize the color themer classes so that they are separate targets for each mutator.
* moved source files out of MaterialThemes.
* moved theme examples into their main component locations out of themer’s.
* renamed core subspec to 'Component'