24 Commits

Author SHA1 Message Date
Junius Gunaratne
205b1b49fd [Catalog, NavigationBar] Update catalog to set custom title color using titleTextAttributes; only set attributedText when title is set
Reviewers: ajsecord, O1 Material components iOS

Reviewed By: ajsecord, O1 Material components iOS

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1480
2016-08-17 15:06:16 -04:00
Adrian Secord
8c3af252be Adding AUTHORS and removing CONTRIBUTORS.txt.
We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has...

Summary:

We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has no legal change, since the contributors always retained their copyright despite the copyright notice, but it's a nice acknowledgement.

Changed copyright statement to include non-Google authors.

Command run:

find * \( -name '*\.m' -or -name '*\.h' -or -name '*\.swift' \) -and -not \( -path 'scripts/external*' -name Pods  \) -print0 | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Added non-source files.

Command run:

grep -Rl 'Copyright .* Google Inc' * --exclude-dir scripts/external --null | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'

Reviewers: featherless, O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1415
2016-08-08 08:16:37 -07:00
Adrian Secord
65a05eed31 Lowercase "material design" in text.
Summary: "Material design" is not capitalized except when referring to the actual Material Design team at Google.

Reviewers: O1 Material components iOS, randallli

Reviewed By: O1 Material components iOS, randallli

Subscribers: randallli, featherless

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D1306
2016-07-25 14:13:08 -04:00
Louis Romero
ab56421cd7 [AppBar] Fix a layout issue in Multitasking
Summary: Closes https://github.com/google/material-components-ios/issues/574.

Test Plan:
1. Open Catalog on iPad Air 2 in Split View.
2. Open AppBar
> AppBar should not be cut.
3. Open Demo
> The RIGHT button should be on the right, and should stay there even when
> resizing the app, rotating the iPad, etc.

Reviewers: featherless, O1 Material components iOS

Reviewed By: featherless, O1 Material components iOS

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D975
2016-06-14 18:32:40 +02:00
Adrian Secord
3aedace959 Re-enabled 100-character line limit.
Reviewers: randallli, O1 Material components iOS

Reviewed By: randallli, O1 Material components iOS

Tags: #material_components_ios

Differential Revision: http://codereview.cc/D965
2016-06-13 13:34:57 -04:00
Jeff Verkoeyen
e46893e0ef [AppBar] Move AppBar header configuration into init so that status bar style is accurate in Hero demo.
Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D736
2016-04-26 14:11:31 -04:00
Jeff Verkoeyen
ea405734e9 [Catalog] Example view controllers must implement init.
Summary: The catalog now calls init on view controllers to initialize them. This does not chain to initWithNibName.

Reviewers: #mdc_ios_owners, junius

Reviewed By: #mdc_ios_owners, junius

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D689
2016-04-20 13:39:49 -04:00
randallli
0dc8870271 [AppBar] Typical Use Example moving logic from init into viewDidLoad
Reviewers: ajsecord, featherless, #mdc_ios_owners

Reviewed By: ajsecord, featherless, #mdc_ios_owners

Subscribers: featherless

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D606
2016-04-19 17:46:50 -04:00
Junius Gunaratne
a147d7b359 [Catalog] Update AppBar demo design, table view should not have text
Reviewers: ajsecord, featherless, #mdc_ios_owners

Reviewed By: featherless, #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D640
2016-04-18 14:57:13 -04:00
Will Larche
2ab08f4133 [Catalog & Examples] Added navigationBar example in Swift (Supplemental POC) and corrected slight mistake in Catalog by Convention logic.
Summary: Merge branch 'develop' of https://github.com/google/material-components-ios into develop

Reviewers: ajsecord, featherless, #mdc_ios_owners

Reviewed By: ajsecord, featherless, #mdc_ios_owners

Subscribers: featherless, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D587
2016-04-13 14:56:49 -04:00
Jeff Verkoeyen
5fa1719a8b [AppBar] Add delegate forwarding example.
Summary: Closes https://github.com/google/material-components-ios/issues/330.

Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D577
2016-04-12 19:37:45 -04:00
Junius Gunaratne
168f7ecc07 [Catalog] Update App Bar bg and text color
Summary: Screenshot http://codereview.cc/M16

Reviewers: featherless, #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D532
2016-04-08 10:38:53 -04:00
Junius Gunaratne
0411613c71 [Catalog] Demo selection screen updated with description and primary demo
Summary: Screenshot http://codereview.cc/M13

Reviewers: featherless, jstriegel, ajsecord, #mdc_ios_owners

Reviewed By: jstriegel, ajsecord, #mdc_ios_owners

Subscribers: ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D514
2016-04-07 16:45:52 -04:00
Jeff Verkoeyen
adcc69b0ee [AppBar] Simplify creation/registration mechanisms.
Summary:
The argument justifying the protocol-oriented approach to App Bar was "convenience", but as is so often the case this convenience actually introduced a variety of costs. Notably:

- Properties defined in a protocol must be synthesized. This was annoying.
- We could not add new properties to the protocol without breaking all clients (they'd get "does not conform to protocol errors").
- We'd overcomplicated the view registration mechanisms. You now simply create an App Bar object and manage view controller parent/child relationships explicitly.

Before this change, clients using the App Bar had to:

1. Conform to a protocol.
2. Synthesize methods.
3. Call an initializer method.
4. Call a viewDidLoad method.

After this change, clients using the App Bar will:

1. Initialize an instance of MDCAppBar.
2. Register the App Bar's header view controller as a child view controller.
3. Call a viewDidLoad method.

Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D446
2016-04-04 13:05:09 -04:00
Jeff Verkoeyen
61a895c5b1 [Catalog] Rename catalogHierarchy to catalogBreadcrumbs.
Reviewers: junius, #mdc_ios_owners

Reviewed By: junius, #mdc_ios_owners

Subscribers: junius

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D448
2016-04-01 12:40:17 -04:00
Junius Gunaratne
692287aee4 [Catalog] Change nav to use top AppBar instead of bottom CatalogBar
Summary:
Exploration of using AppBar as example VC wrapper
http://codereview.cc/M8

Reviewers: #mdc_ios_owners, featherless

Reviewed By: #mdc_ios_owners, featherless

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D443
2016-04-01 11:29:06 -04:00
Jeff Verkoeyen
d986069297 [AppBar] Provide recommendations for status bar style.
Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D332
2016-03-24 14:20:03 -04:00
Jeff Verkoeyen
bd2329c84f [AppBar] Standardize and document the examples in preparation for upcoming examples.
Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D331
2016-03-24 13:47:50 -04:00
Jeff Verkoeyen
7f53f63518 Addressing code style feedback from D326.
Reviewers: #mdc_ios_owners, iangordon

Reviewed By: #mdc_ios_owners, iangordon

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D327
2016-03-24 11:07:33 -04:00
Jeff Verkoeyen
d6764f9ff4 [AppBar] Use the catalog's blue color in the examples.
Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Subscribers: ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D326
2016-03-24 10:08:30 -04:00
Junius Gunaratne
fb906e3176 [Catalog] Update catalog home screen to new light themed design
Summary: http://codereview.cc/M4

Reviewers: featherless, ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D322
2016-03-23 17:33:20 -04:00
Jeff Verkoeyen
de6233be66 [AppBar] Remove unnecessary code from the ObjC example.
Reviewers: #mdc_ios_owners, ajsecord

Reviewed By: #mdc_ios_owners, ajsecord

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D320
2016-03-23 17:19:49 -04:00
Adrian Secord
ce3a7cf14d [AppBar] Fix compiler warnings about formatting NSIntegers.
Reviewers: featherless, #mdc_ios_owners

Reviewed By: featherless, #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D311
2016-03-23 10:10:07 -04:00
Jeff Verkoeyen
feba07ed17 Introducing the App Bar component.
Summary: The App Bar component provides tools to create a 'typical' flexible header with navigation bar and material shadow.

Reviewers: ajsecord, #mdc_ios_owners

Reviewed By: ajsecord, #mdc_ios_owners

Projects: #material_components_ios

Differential Revision: http://codereview.cc/D280
2016-03-16 17:34:40 -04:00