12 Commits

Author SHA1 Message Date
Andrew Overton
38840677ff
[Tabs] Don't use MDCTabBarColorThemer in examples (#9125)
This PR makes it so that Tabs examples use the theming extension instead of the themer.

Related to #9061.
Related to #9063.
Related to #9062.
2019-12-05 15:30:13 -05:00
Yarden Eitan
efe61588a6
update (#7246)
We need to add @objc annotations to colorScheme and typographyScheme instances in our Swift examples, because we moved to Swift 4.2, the respondsToSelector won't find `setColorScheme:` and `setTypographyScheme:` setters otherwise.
2019-04-23 10:21:14 -04:00
featherless
2181084272
[automated] Standardize our open source license stanza to what Xcode generates. (#4985)
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.
```
2018-08-31 12:13:07 -04:00
Robert Moore
175942d9e0
[Catalog] Fix Swift example imports (#4780)
Many of our Swift examples are either missing imports or are importing all of
MaterialComponents. Both of these will cause failures during internal builds.
2018-08-14 13:26:37 -04:00
featherless
50e1fd091d
[Catalog] Conversion to new App Bar View Controller API (#4696)
This PR updates the catalog to use the new MDCAppBar API throughout.
2018-08-07 09:30:37 -04:00
Robert Moore
cb08164a8d
[Tabs] Fix alerts in examples (#4480)
Several of the Tabs examples were using UIAlertControllers to present
multi-select options. Due to missing sourceView/sourceRect in the
popoverPresentationController, they would crash on iPads.  On iPhones,
they were shown as an action sheet and so did not require a source view.

## Sample screenshots
![simulator screen shot - ipad air 2 - 2018-07-06 at 14 14 28](https://user-images.githubusercontent.com/1753199/42394115-f90fd03a-8126-11e8-8471-b2d71e4b8b65.png)
![alignment-ipadair2-11 0 1](https://user-images.githubusercontent.com/1753199/42394116-f91d328e-8126-11e8-9a20-95e794145203.png)


Closes #3103
2018-07-06 14:37:26 -04:00
featherless
08403aecf7
[Tabs] Add umbrella headers for all extension targets. (#3476)
Also updated all imports to make use of the umbrella headers.

Pivotal story: https://www.pivotaltracker.com/story/show/157045283
2018-04-26 21:20:08 -04:00
featherless
6ef9939111
[Tabs] Replace MDCRaisedButton with contained button themer in TabBarIndicatorTemplateExample. (#3500)
Pivotal story: https://www.pivotaltracker.com/story/show/157105832

Before:
![simulator screen shot - iphone se - 2018-04-25 at 20 14 16](https://user-images.githubusercontent.com/45670/39279219-a8eb18b0-48c5-11e8-8c51-dea08ac819d5.png)

After:
![simulator screen shot - iphone se - 2018-04-25 at 20 15 57](https://user-images.githubusercontent.com/45670/39279225-ac8c4200-48c5-11e8-8475-42db5c2a76ba.png)
2018-04-26 21:18:31 -04:00
Yarden Eitan
7f7bc36202
[Catalog] Expose colorScheme + typographyScheme properties for all examples to use app wide theming (#3478)
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
2018-04-25 15:15:17 -04:00
John Detloff
7799a15025
Update MDCTabBar color themer (#3361)
https://www.pivotaltracker.com/story/show/156171753


Before:
https://user-images.githubusercontent.com/1418389/38756680-56e300aa-3f38-11e8-8ab3-c4cae293c689.png
https://user-images.githubusercontent.com/1418389/38756681-574887e0-3f38-11e8-99bf-e4993d093a8a.png
https://user-images.githubusercontent.com/1418389/38756682-575790aa-3f38-11e8-858e-a44fe1312875.png
https://user-images.githubusercontent.com/1418389/38756683-576b5b94-3f38-11e8-9cb6-3f0b7bf49b55.png
https://user-images.githubusercontent.com/1418389/38756684-577a85ce-3f38-11e8-96f7-2b5d6a600ff8.png
https://user-images.githubusercontent.com/1418389/38756685-57854748-3f38-11e8-9fb9-2ba5c7c9142b.png
https://user-images.githubusercontent.com/1418389/38756686-57902276-3f38-11e8-91a6-d34bf054553f.png
https://user-images.githubusercontent.com/1418389/38756687-579e0684-3f38-11e8-9f3a-7b335aa0b9c7.png

After:
https://user-images.githubusercontent.com/1418389/38756708-6825c8c0-3f38-11e8-9f00-bc5a871cc26b.png
https://user-images.githubusercontent.com/1418389/38756709-68338faa-3f38-11e8-89c5-588cba6711f6.png
https://user-images.githubusercontent.com/1418389/38756710-68443d46-3f38-11e8-8894-8d11096e0650.png
https://user-images.githubusercontent.com/1418389/38756711-68502836-3f38-11e8-8cba-2f492c25042a.png
https://user-images.githubusercontent.com/1418389/38756713-685fa5d6-3f38-11e8-868a-5481e1a8d5f1.png
https://user-images.githubusercontent.com/1418389/38756714-686a62b4-3f38-11e8-8a36-b4fd948ea00b.png
https://user-images.githubusercontent.com/1418389/38756715-6875927e-3f38-11e8-9a9a-5371514156a5.png
https://user-images.githubusercontent.com/1418389/38756716-68817f26-3f38-11e8-8d2b-162dda9a6780.png
2018-04-17 14:23:36 -04:00
Brian Moore
8463e9b46b [Tabs] Allow customization of fonts and text transform (#2547)
* [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
2017-12-03 16:37:54 -05:00
Brian Moore
e558394e6e
[Tabs] Selection indicator templates (#2384)
* [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
2017-11-16 11:40:05 -05:00