Removes the need to copy-paste stanzas from other files anymore as we'll rely on #4478 to generate the correct stanza for us instead.
This was an automated change generated by running a find-and-replace regular expression:
```
/\*
Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.
Licensed under the Apache License, Version 2\.0 \(the "License"\);
you may not use this file except in compliance with the License\.
You may obtain a copy of the License at
http://www\.apache\.org/licenses/LICENSE-2\.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
See the License for the specific language governing permissions and
limitations under the License\.
\*/
```
```
/\*
Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.
Licensed under the Apache License, Version 2\.0 \(the "License"\);
you may not use this file except in compliance with the License\.
You may obtain a copy of the License at
http://www\.apache\.org/licenses/LICENSE-2\.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
See the License for the specific language governing permissions and
limitations under the License\.
\*/
```
```
/\*
Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.
Licensed under the Apache License, Version 2\.0 \(the "License"\);
you may not use this file except in compliance with the License\.
You may obtain a copy of the License at
http://www\.apache\.org/licenses/LICENSE-2\.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
See the License for the specific language governing permissions and
limitations under the License\.
\*/
```
```
// Copyright $1-present the Material Components for iOS authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
```
This fixed two issues: (1) the status bar style color issue in tab bar view controller
(2) the background color of the tab bar example was always black
Many of our Swift examples are either missing imports or are importing all of
MaterialComponents. Both of these will cause failures during internal builds.
Made colorScheme and typographyScheme properties in the class interfaces for all our examples.
Moved theming away from example inits and into viewDidLoad
Small update for slider example to allow it to grab the theming properly.
Related Pivotal: https://www.pivotaltracker.com/story/show/156616695
* [Tabs] API additions to customize more properties
* [Tabs] Update name of padding property
* [Tabs] Add bar padding property
* [Tabs] Use text attributes instead of font
* [Tabs] Use enum to define text transform
* [Tabs] Remove IBInspectable for UI_APPEARANCE_SELECTOR properties
* [Tabs] Switch back to UIFont
* [Tabs] Update API, implement font properties
* [Tabs] Implement text transform
* [Tabs] Update comments for unimplemented properties
* [Tabs] Remove unimplemented properties for now
* [Tabs] Small iteration
* [Tabs] Update displaysUppercaseTitles comment
* [Tabs] Use property accessors, consolidate uppercase logic
* [Tabs] Explicitly number MDCTabBarTextTransform
* [Tabs] Review fixes
* [Tabs] Slightly more concise
* 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
* [Tabs] Selection template prototyping hacks
* [Tabs] More API refinement within prototype
* [Tabs] API revisions
* [Tabs] Bump copyright year for changed files
* [Tabs] API revisions
* [Tabs] Update prototype to work with newest API revisions
* [Tabs] Make concrete indicator context private
* [Tabs] Clean up prototype for real implementation
* [Tabs] More implementation cleanup
* [Tabs] Add selection indicator example code
* [Tabs] Document selection indicator templates
* [Tabs] Add missing files, update with latest CocoaPods
* [Tabs] Copyright year bump, make template null_resettable
* [Tabs] Miscellaneous small edits
* [Tabs] Last set of edits
* [Tabs] Actually add missing files
* [Tabs] Small edits
* [Tabs] Added appearance switch to indicator example + other edits
* [Tabs] Style fixes
* [Tabs] NSCoding for MDCTabBarIndicatorView
* [Tabs] Update availability check
* [TabBar] Fixes for Safe Area insets.
* [TabBar] Check bar position.
* [TabBar] Add back intrinsicContentSize for consistency with sizeThatFits.
* [TabBar] RTL fixes
* [TabBar] Call setNeedsUpdateConstraints to match UIKit.
* [TabBar] Remove need for maintaining a height constraint for auto layout.
* [TabBar] Undo sizeThatFits/intrinsicContentSize changes.
* [TabBar] Revert more things.
* [TabBar] Undo more stuff.
* [TabBar] Review
* [Catalog] Fix Tabs example for rotation
When the last tab was selected and the scroll view was all the way to
the right, rotating the device from portrait to landscape would cause
the scroll view to reposition itself. This resulted in half of each of
the two screens being visible.
* Marking size unused
* Fixing swift example. Unmarking "size" as unused
* Update existing RobotoMono fonts to system Mono font
* Updates mono font's to check for iOS 9 or use a font descriptor
* Fix two remaining issues
* Updated PR to use function instead of macro, also reverted back to RobotoMono for CatalogTiles
* Reverted back to RobotoMono for CatalogTiles
* Update styling issues
* Update fonts to be 14 instead of 16pt
* Fix crash in Swift
* Update swift uses of UIFont.withSize(x)
* Update iOS9 check and fix errors with UIFont
* Remove function for check and use respondsToSelector
* Fix extra new lines
* Undo formatting changes.
* Undo whitespace changes.
The Bottom Navigation example for Tabs was overlapping with the Home Screen
indicator on the iPhone X. The example will now use safeAreaInsets if available
to calculate the position of the tab bar.
Closes#1975
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
The TabBar Icon example had 2 warnings about unknown selectors because
they were defined in the class implementation but not exposed to the
category. The AppBar items were also unreadable because they were black
text on dark gray background colors.
* [TextFields] Linting
* [Catalog] Swift style.
* [Catalog] Swift style.
* [Buttons] Swift style.
* [FlexibleHeader] Swift style.
* [NavBar] Swift style.
* [Snackbar] Swift style.
* [Tabs] Swift style.
Discussed merge with Ian offline. Issues with Travis CI may be resolved once the PR is merged.
* Add color to tiles.
* Add theming to catalog
* Update text field tile.
* Implementation method signatures should match those in header.
* Update MDCDrawFunc typedef
* Pass color scheme through NSNotification
* Add component theming
* Add tabbar themer
* Update tab example to use UIAppearance
* Theme sliders based on UIAppearance proxy
* Allow any class conforming to MDCColorScheme
* Override navigation bar color theme for imagery example.
* Update AppBar and ButtonBar color theming
* Update button bar themer comment
* Update button theming
* Remove theme imports where not necessary.
* Fix case of private
* MDCTabBarViewController - like UITabBarViewController, but uses Material Design's MDCTabBar
* MDCTabBarViewController Interface Builder example
It's integrated into the Catalog app as a Tab example. Also demonstrates moving the tab bar from the unselected state to the selected state. Note: this reveals a bug with the unselected state that https://github.com/material-components/material-components-ios/pull/1441 fixes.
* Copyright date is 2017 for these TabBarViewController files. Fix white space issues.
* Add <UITabBarItem *> to local variable in updateTabBarItems
* Address Brian Moore's comments: ran clang-format -style=file on these files,
Modified tabBar delegate protocol: tabBar:willSelectItem: becomes tabBar:shouldSelectItem:
so that MDCTabBarViewController can have a 'shouldSelect' delegate.
* comment correction of ViewController to view controller.
* Add new API to MDCItemBar in preparation for deprecating willSelect: from the delegate protocol, replacing it with shouldSelect:. Revert changes to comment lines that appear to be a mis-configuration at my end to 80 columns.
* Tested more thoroughly, verified that the class still works.
* Restore the delegate willSelect method that we intended in favor of shouldSelect:
* Simplify private/MDCItemBar's delegate protocol, write MDCTabBar public protocol in terms of it, as Brian asked.
* Comment fixes.
* Address Brian Moore's May 31 comments. Adjust color of TabBar in Interface builder example.
* Update README.md
* Replacing methods with class properties.
* Updating docs to reflect new Swift call style.
* Updating examples.
* Updating ObjC examples to use dot syntax