56 Commits

Author SHA1 Message Date
Robert Moore
675235ed05
{Tests} Deallocate test objects at the end of tests. (#5397)
Deallocating many of the properties created for each unit test. Since all
XCTestCase instances survive until the end of the test suite, any properties
created for a test will be preserved as well. This frees up around 3.7 MB
(~6%) of memory from the entire test suite, as measured on my desktop.

|Before|After|
|----|----|
|![test-objcs-before](https://user-images.githubusercontent.com/1753199/46813473-c3b9bd00-cd44-11e8-990c-28dff4ab5ad2.png)|![test-objcs-after](https://user-images.githubusercontent.com/1753199/46813481-c7e5da80-cd44-11e8-90e4-2e6d532ebbfb.png)|

See also: https://qualitycoding.org/xctestcase-teardown/

Closes #5395
2018-10-12 08:33:58 -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
Andrew Overton
efc3a86c5e
[TextFields] Update placeholder and outline border color when enabling/disabling text fields with outline controllers (#4779)
* Update placeholder and outline border color when setting enabled property on a TextField with an outline controller.

* Observe NSNotification instead of key-value pairs

* Fix typos

* Get rid of underline.color == controller.normalColor check in testThemerWithBaselineColorSchemeAppliesToSingleLineTextField because the underline should never be visible in outline controllers
2018-08-16 09:51:54 -04:00
featherless
c4935b333d
[TextFields]! Remove encoding/decoding behavior for custom properties (#4567)
Closes https://github.com/material-components/material-components-ios/issues/3948
2018-07-18 15:55:18 -04:00
Michelle Dudley
528f46323f [TextFields] Migrate textInputClearButtonTintColor to MDCTextInputController, tests (#4465)
Adding support for theming the clear button tint color in MDCTextInputController. Allows for theming the clear button tint color in legacy, full-width, and underline text fields.

Closes #4453.
2018-07-06 12:09:49 -04:00
Robert Moore
8835a412a2
[TextFields] Support clear button tint color (#4449)
Adding support to change the clearButton's tintColor from the TextInputController. This allows more consistent theming across controllers.

Closes #4447 

## Filled

**Before**
![screen shot 2018-06-29 at 12 23 12 pm](https://user-images.githubusercontent.com/1753199/42103490-427a1e96-7b97-11e8-9410-9d20f5ff6d32.png)


**After**
![screen shot 2018-06-29 at 12 21 51 pm](https://user-images.githubusercontent.com/1753199/42103502-4b1d8c22-7b97-11e8-85be-3997d0e3dee4.png)


## Outlined

**Before**
![screen shot 2018-06-29 at 12 23 01 pm](https://user-images.githubusercontent.com/1753199/42103497-45b2fca4-7b97-11e8-82df-3a01bc3e8240.png)

**After**
![screen shot 2018-06-29 at 12 21 36 pm](https://user-images.githubusercontent.com/1753199/42103498-48b22010-7b97-11e8-8c8e-004cb35d3b6a.png)
2018-06-29 15:44:09 -04:00
Yarden Eitan
7af29ce778 Revert "[TextFields] Floating placeholder font changes after users starts typing. (#4213)"
This reverts commit 3ac33a79e2f6fb744248fee8454cd0379bb7c3b9.
2018-05-30 12:29:32 -04:00
Mohammad Cazi
3ac33a79e2
[TextFields] Floating placeholder font changes after users starts typing. (#4213)
* Fixing the order of operations. Setting TextInput Font causes placeholder font to be updated so we update placeholderFont after to font we desire.

* added comment, explaining the code and added a unit test to verify the behavior.

* missing comment

https://github.com/material-components/material-components-ios/pull/4213
2018-05-29 14:01:08 -04:00
Mohammad Cazi
7e3c5ae107 [TextFields] fixing color mapping for floatingNormal and floatingActive Colors. (#3617)
* fixing color mapping for floatingNormal and floatingActive Colors.

* fixing the tests.
2018-05-02 11:34:06 -04:00
featherless
7e1e2f0e89
[TextFields] Add umbrella headers for all extension targets. (#3477)
Also updated all imports to make use of the umbrella headers.

Pivotal story: https://www.pivotaltracker.com/story/show/157045283
2018-04-26 12:59:10 -04:00
Will Larche
128bd79416
[TextFields] Unit tests for more classes of controller (#3436)
* [TextFields] Correcting spelling error.

* [TextFields] Adding tests for filled and outlined text fields.

* [TextFields] Guaranteed variety in the text field unit tests.
2018-04-20 17:34:23 -04:00
Will Larche
b49156ad4d
[TextFields] Adding a floating placeholder active color override. (#3433) 2018-04-20 15:56:41 -04:00
Mohammad Cazi
3c22a8d18b
[TextFields] Adding the expected opacities to color themer. (#3347)
* Adding the expected opacities to color themer for textfields.
Updated tests.

* making sure precision is defined for constant values.

* define the type of values to be float (warning as error fix)
2018-04-13 11:44:02 -04:00
Mohammad Cazi
0efdeb2a3f
[TextFields] Typography Themer implementation. (#3303)
* TextFields Typography Themer added.
Tests and example included.

* Removing extra checks, comment the reason behind checking pointsize

* fixing typo.
2018-04-10 15:41:32 -04:00
Mohammad Cazi
75c81a1659
[TextFields] Adding Color Themer. (#3255)
* Adding Color Themer for Textfields.

* We have to keep the old API around, and deprecated after releasing the new version.

* fixing indentions.

* Importing the needed headers instead of forward declaration, documenting the deprecation and suggested methods to use.

* Filled text field example is updated to style the textfield with the semantic color scheme.
TextFieldColorThemer should be able to theme any MDCTextInput.

* fixed couple of method name change updates.

* Adding Color Themer for Textfields.

* We have to keep the old API around, and deprecated after releasing the new version.

* fixing indentions.

* Importing the needed headers instead of forward declaration, documenting the deprecation and suggested methods to use.

* Filled text field example is updated to style the textfield with the semantic color scheme.
TextFieldColorThemer should be able to theme any MDCTextInput.

* fixed couple of method name change updates.

* Revert "fixed couple of method name change updates."

This reverts commit 9e0ef0f2eb08026e05b1f182aab6b4dc84fa766b.

* Revert "Revert "fixed couple of method name change updates.""

This reverts commit bda6b13ff979811bd1eccc6ef365dd273fed007b.

* fixing breaking tests.
2018-04-06 12:06:12 -04:00
featherless
83b9ea1735
Revert "[Typography] Migrate from FontScheme to TypographyScheming (#3219)" (#3256)
This reverts commit 2e48edf99f8c73c81ba4d782f51a55faf06d23a8.

This commit introduced a test-breaking change in TextFields that is blocking presubmits.

Closes https://github.com/material-components/material-components-ios/issues/3245
2018-04-05 14:04:44 -04:00
ianegordon
2e48edf99f
[Typography] Migrate from FontScheme to TypographyScheming (#3219)
* Migrate to Font Scheme

* Add support for iOS 8.0-8.1

* Update Themers and Tests

* Font -> Typography

* Rebase

* Update BUILD

* Cleanup

* Update naming, add docs

* Fix BUILD target

* Add Typography Dependency

* BUILD updates

* BUILD fix

* Add tests

* Typography
2018-04-04 23:47:49 -04:00
Robert Moore
72283d6b4b
Fixing static analyzer warnings from Xcode 9.3 (#3196)
We had a few static analyzer warnings. Mostly about converting NSNumbers into
primitive BOOL values. A few others regarding nullability problems.
2018-03-30 14:31:22 -04:00
Mohammad Cazi
cb0d00be93
[TextFields] Make MDCTextInputControllerLegacyDefault a subclass of MDCTextInputControllerBase (#3152)
* Extracting Accessibility out of FeatureHighlightViewController to a mutator.
Tests added.
Example updated.

* Revert "Extracting Accessibility out of FeatureHighlightViewController to a mutator."

This reverts commit 0b5433ebf86366087b240c4dc4992a0603fa73e0.

* Merged Legacy and Base text controller. Significantly less code to maintain. higher test coverage since the tests are shared now.

* revert test changes.

* better test failure log

* extra space.

* Fixing tests.
2018-03-28 15:11:59 -04:00
Yarden Eitan
f91317ff04 [MDCTextFields + Kokoro] Making textfields dynamic type off by default (#3149)
* Revert "[TextFields] Adding font themer (#3096)"

This reverts commit 91a376ffe1330c6c96344259d36c837c88188db3.

* made MDCTextFields not have dynamic type turned on by default
2018-03-27 13:28:53 -04:00
Mohammad Cazi
91a376ffe1 [TextFields] Adding font themer (#3096)
* Extracting Accessibility out of FeatureHighlightViewController to a mutator.
Tests added.
Example updated.

* Revert "Extracting Accessibility out of FeatureHighlightViewController to a mutator."

This reverts commit 0b5433ebf86366087b240c4dc4992a0603fa73e0.

* Adding Font themer to TextFields.

* extra lf.

* dealing with warnings.

* Fixing unit tests.

* commenting out low priority set up for bounds

* commenting out tests to see if tests would fail.

* tests are back, scale could have been zero.

* temp fix in case the fonts are zero.

* check for default inside setter.

* fix compliing mistakes.

* add documentation for the change.

* Example of dynamic size with different fonts.

* added support for dynamic type with custom fonts.

* fixed the top overlapping issue

* Replied to comment and fixed the issues.

* Adding Text Input property to InputController
Changing the value of mdc_adjustsFontForContentSizeCategory should not effect the actual controller fonts that are set by user but only the properties of the actual textfield. In order to do that I moved the resizing of fonts away from the properties of InputController and into update layout.

* Fixing the comment. Changing font scheme to not accept nullable controllers.

* change documentation.
2018-03-23 15:03:13 -04:00
Yura Samsoniuk
9c4858c383 Added test for MDCTextInputControllerBase (#3036) 2018-03-06 13:10:16 -05:00
Will Larche
002b83a158
[TextFields] Updating cursor color for state. (#2967)
* [TextFields] Updating cursor color for state.

* [TextFields] Formatting.
2018-02-18 12:33:44 -05:00
Will Larche
62d5a4fa85 [TextFields] Feature branch merge: Clarity, Safety, Docs, Comments, Formatting (#2634)
* [TextFields] Full width changes. (#2590)

* [TextFields] Propagating changes to themers. (#2585)

* [TextFields] Propagating changes to themers.

* [TextFields] Updates to themer examples.

* [TextFields] Base controller class files (#2582)

* [TextFields] New Base class files.

* [TextFields] Naming corrections.

* [TextFields] Formatting.

* [TextFields] Replacing -Default with -Underline (#2583)

* [TextFields] Adding underline controller.

* [TextFields] Changes to umbrella import file and removing default controllers.

* [TextFields] Renaming one file.

* [TextFields] Updated controller headers. (#2584)

* [TextFields] Updating examples. (#2586)

* [TextFields] Running clang-format on the elements. (#2587)

* [TextFields] Running format on the element itself.

* [TextFields] Minor formatting.

* [TextFields] Updating tests and formatting. (#2588)

* [TextFields] Filled controller changes. (#2589)

* [TextFields] Legacy controller comments, naming, and formatting. (#2591)

* [TextFields] Legacy controller comments, naming, and formatting.

* [TextFields] Adding safety to legacy default init.

* [TextFields] Adding safety to Legacy Default init.

* [TextFields] Formatting Legacy Default.

* [TextFields] Formatting Legacy Full Width.

* [TextFields] Text area comments, updated super, naming, formatting. (#2593)

* [TextFields] Text area updates.

* [TextFields] Clarifying comment.

* [TextFields] Outline changes and formatting. (#2592)

* [TextFields] Updates to styling doc. (#2594)

* [TextFields] Updates to styling doc.

* [TextFields] Updating doc.

* [TextFields] Full width comments, safety, formatting, and underline support. (#2633)

* [TextFields] Adding safety to full width.

* [TextFields] Formatting Full Width.

* [TextFields] PR feedback.

* [TextFields] Safety in init of Base (#2632)

* [TextFields] Adding safety to base init.

* [TextFields] Formatting Base.

* [TextFields] Updates to controller header. (#2636)

* [TextFields] Updates to controller header.

* [TextFields] Updating misleading comments.

* [TextFields] Supplemental file name changes. (#2635)
2017-12-12 11:07:48 -05:00
Will Larche
6f48a43b53
[TextFields] Updating encoding and copying. (#2515) 2017-11-27 09:36:54 -05:00
Will Larche
7937f1b5c9 [TextFields] TrailingView tests. (#2516) 2017-11-27 09:22:49 -05:00
Will Larche
1bd5590bbb
[Kokoro] Support for TextFields, Math, and Typography (#2432)
* [TextFields] Kokoro work.

* [Math] Imports needed for kokoro.

* [Kokoro] Support for MDCMath.

* [TextFields] Alphabetizing.

* [Kokoro] Formatting.

* [Kokoro] Formatting
2017-11-16 22:25:52 -05:00
Will Larche
282754e7a9
[TextFields] Fixes bugs on multiline IB support (#2289)
* [TextFields] Improved interface builder support.

* [TextFields] Adding multiline to interface builder example.

* [TextFields] Adding comment.

* [TextFields] Updating IB example.

* [TextFields] Updating storyboard for example.

* [TextFields] Adding handling of expanding on overflow for IB cases.

* [TextFields] Adding better expanding support for IB.

* [TextFields] Fixing bugs related to loading a multiline text field from a storyboard.

* [TextFields] Reorganizing IB examples to add new one.

* [TextFields] Adding useful comment.
2017-11-01 09:53:21 -04:00
Will Larche
463a2831a0 [TextFields] Adds cursor color as parameter (#2297)
* [TextFields] Adding cursorColor to example.

* [TextFields] Adding cursor color to tests.

* [TextFields] Completing implementation of cursor color.
2017-10-27 08:17:30 -04:00
Adrian Secord
479f7b1141 Remove trailing whitespace everywhere. (#2168) 2017-10-13 11:33:35 -04:00
Will Larche
75cf565fea [TextFields] Fix text fields overlapping labels (#2163)
* [TextFields] Removes ambiguous layout.

* [TextFields] Better code organization and comment.

* [TextFields] Adding a filled in field to the examples.

* [TextFields] Correcting placeholder not rising when text is set programatically. Also better naming.

* [TextFields] Giving examples of each floating style a set .text.

* [TextFields] Adding placeholder float test.
2017-10-12 23:25:50 -04:00
Will Larche
5dae93c6c4 [TextFields] Adding .placeholderText to controllers (#2149)
* [TextFields] Adding .placeholderText to fix bugs and continue moving API to controller.

* [TextFields] PR feedback.

* [TextFields] Removes ambiguous layout.

* [TextFields] Better code organization and comment.
2017-10-12 09:16:07 -04:00
Martin Petrov
467fdf31a5 [TextFields] Fix broken MDCMultilineTextField build for iOS 10. (#2100)
* Fix broken MDCMultilineTextField bulid for iOS 10.

It fails to build in it's current state because  setAdjustsFontForContentSizeCategory: is defined twice; once inside the ifdef block and once outside. The version in the ifdef also fails to compile since UIView does not conform to UIContentSizeCategoryAdjusting.

* removing adjusts

* nuke test ios10 check
2017-10-06 15:46:15 -04:00
Will Larche
f247bae8ba [TextFields] Better custom fonts (#2056)
* [TextFields] Beginning to update label fonts API.

* [TextFields] Default text input controller has font defaults.

* [TextFields] Correcting types.

* [TextFields] More implementation of custom fonts.

* [TextFields] Type correction.

* [TextFields] Adding unit tests for custom fonts.

* [TextFields] Implementing new API.
2017-09-27 16:27:32 -04:00
Will Larche
c70d720e9b [TextFields] Fix for placeholders being colored active when isEditing = NO (#1963)
* [TextFields] Making the floating color parameter only affect the non-active state.

* [TextFields] Correcting comment.

* [TextFields] Removing logging.
2017-09-11 15:45:54 -04:00
Will Larche
ac57979961 [TextFields] Making a test pass on 3x simulator. (#1915)
* [TextFields] Making a test pass on 3x simulator.

* [TextFields] Updating test.
2017-08-26 11:43:08 -04:00
Will Larche
c3ed6be9d1 [TextFields] New styles: updated default, box, area (#1908)
* [TextFields] New style's API. (#1812)

* [TextFields] New style's API.

* [TextFields] PR feedback.

* [TextFields] Subclassing header.

* [TextFields] Spelling correction.

* [TextFields] Minor correction to API.

* [TextFields] Naming correction.

* [TextFields] Comment update.

* [TextFields] API correction for style.

* [TextFields] Input changes for new styles. (#1814)

* [TextFields] Input changes for new styles.

* [TextFields] PR feedback.

* [TextFields] Removing typo.

* [TextFields] Input changes for new styles. (#1814)

* [TextFields] Input changes for new styles.

* [TextFields] PR feedback.

* [TextFields] Removing typo.

* [TextFields] New default input controller. (#1816)

* [TextField] New default input controller.

* [TextFields] Properties corrections.

* [TextFields] Removing extra logic.

* [TextFields] Code organization.

* [TextFields] Default controller corrections.

* [TextFields] Updating minor full width issues to match other controllers.

* [TextFields] Correcting typos.

* [TextFields] Renaming legacy tests and examples. (#1817)

* [TextFields] Renaming legacy tests and examples. (#1817)

* [TextFields] New text field box style. (#1818)

* [TextFields] New text field box style.

* [TextFields] Formatting issues.

* [TextFields] Updated and new examples for new styles. (#1822)

* [TextFields] Updating tests for new styles and functionality. (#1820)

* [TextFields] Updating tests for new styles and functionality. (#1820)

* [TextFields] New text area style. (#1819)

* [TextFields] New text area style.

* [TextFields] Adding assert for text area init.

* [TextField] Text area corrections.

* [TextFields] Formatting.

* [TextFields] Type safety.

* [TextFields] Legacy full width controller and example (#1855)

* [TextFields] Legacy full width example.

* [TextFields] Legacy full width.

* [TextFields] Adding legacy full width to text fields import file.

* [TextFields] Adding border view. (#1813)

* [TextFields] Adding border view.

* [TextFields] Making Xcode call out missing cases in the future.

* [TextFields] NSCopying style fix.

* [TextFields] Border view.

* [TextFields] Renaming old default to legacy default. (#1815)

* [TextFields] Renaming old default to legacy default.

* [TextFields] Correcting synthesizing of properties.

* [TextFields] Moving some code so it doesn't stick out.

* [TextFields] Correcting new that should be alloc init.

* [TextFields] Removing unneeded logic.

* [TextFields] Supporting old clear button.

* [TextFields] Rounding out main header with all new files (#1863)

* [TextFields] Forgotten imports.

* [TextFields] Correcting alphabetizing.

* [TextFields] Typo correction. (#1864)

* [TextFields] Clear button tint and tests. (#1861)

* [TextFields] Spelling correction. (#1870)

* [TextFields] Naming lost in rebase 'roundedCorners' (#1871)

* [TextFields] Rounded corners work.

* [TextFields] Updating rounded corners rename.

* [TextFields] Correcting naming typo. (#1872)

* [TextFields] Removing MDCTextInputControllerLegacyDefault from IB example. (#1869)

* [TextFields] Removing MDCTextInputControllerLegacyDefault from IB example. (#1869)

* [TextFields] Using class properties by dot syntax.

* [TextFields] Using class properties by dot syntax.

* [TextFields] Class properties access via dot syntax.

* [TextFields] Cleaning up properties.

* [TextFields] Updating legacy full width controller to support new properties.

* [TextFields] Re-adding a file with no history.

* [TextFields] Rebase.

* [TextFields] Art merge correction.

* [TextFields] Minor merge corrections.

* [TextFields] Corrections and additions to kitchen sink (#1899)

* [TextFields] Kitchen sync updates.

* [TextFields] Adding area to kitchen sink.

* [TextFields] Reversing addSubview and tamic off.

* [TextFields] Example updates due to text inset changes. (#1901)

* [TextFields] Adding text insets mode to kitchen sync example.

* [TextFields] Minor example corrections.

* [TextFields] Example updates.

* [TextFields] Adding area to kitchen sink.

* [TextFields] Correcting an example.

* [TextFields] Adding char max to area.

* [TextFields] Reversing addSubview and tamic off.

* [TextFields] Updating controllers for new text inset logic (#1902)

* [TextFields] Lining up some comments better.

* [TextField] Simplifying text inset math.

* [TextFields] Layout logic revamped in controllers.

* [TextFields] Box fix!

* [TextFields] PR feedback.

* [TextFields] Changing insets to react to new property (#1900)

* [TextFields] Creating MDCTextInputAlignmentRectMode.

* [TextFields] Correcting MDCTextInputAlignmentRectMode API.

* [TextFields] AlignmentRectMode implementation.

* [TextFields] Tests for alignment rect.

* [TextFields] MDCTextInputFundamentTextInsetsMode replacing alignment rect mode.

* [TextFields] Text insets mode boiler plate.

* [TextFields] Adding text insets mode to kitchen sync example.

* Revert "[TextFields] Adding text insets mode to kitchen sync example."

This reverts commit 2d4a3ea302d36fc2f79998456e0fcf009ba020d1.

* [TextFields] Moving text insets logic into fundament and updating it to use the new modes.

* [TextFields] Basic text insets affected by text insets mode.

* [TextFields] Improving the line height estimation. (#1905)

* [TextFields] Box style clear button Y fix (#1906)

* [TextFields] Moving clear button const.

* [TextFields] Box clear button polish.

* [TextFields] Autolayout clarity.

* [TextFields] Formatting. (#1907)

* [TextFields] Fixing copyright stanzas.

* [TextFields] One more copyright stanza correction.

* [TextFields] PR feedback.
2017-08-26 08:04:30 -04:00
Will Larche
3bd23322ad [TextFields] Renaming text field controllers to have 'Legacy' (#1876)
* [TextFields] Renaming text field controllers to have 'Legacy'. Also the consequences.

* [TextFields] Reverting a couple naming changes.
2017-08-22 16:48:34 -04:00
Will Larche
1dcbaeed6b [TextFields] New controller api for leading and trailing colors. (#1846)
* [TextFields] New controller api for leading and trailing colors.

* [TextFields] Added comments on clear coloring in full width.

* [TextFields] Text input controller defaults to dot syntax for class properties.
2017-08-18 20:18:03 -04:00
Will Larche
7830d7eb29 [TextFields] Making a disabled color property on controllers (#1776)
* [TextFields] Tightening up underline.

* [TextFields] Additional tests.

* [TextFields] Comment.

* [TextFields] Disabled color test.
2017-08-10 20:10:43 -04:00
Will Larche
d42f2c7713 [TextFields] Renaming and cleaning up propertys. (#1767)
* [TextFields] Deleting unused underline key.

* [TextFields] Renaming propertys.
2017-08-10 16:53:43 -04:00
Will Larche
af964fe670 [TextFields] Multiline textfields (#1756)
* [TextFields] Multiline text fields element (#1737)

* [TextFields] Multiline text field element.

* [TextFields] Formatting,

* [TextFields] Adding missing change for multiline protocol.

* [TextFields] Multiline added to main header. (#1740)

* [TextFields] Multiline tests. (#1741)

* [TextFields] Controllers. (#1742)

* [TextFields] Controllers.

* [TextFields] Multiline clear button correction.

* [TextFields] Alphabetizing.

* [TextFields] Multiline examples. (#1743)

* [Scripts] Only lint catalog, components, and demos (#1744)

The lint_all script should stick to the MDC-iOS code and not the docs,
scripts, etc. that are included in the repository.  Specifically, we are
only linting the Components, Catalog, and Demos that we ship.

Closes #1578

* [Collections] Making Disclosure indicator tinted (#1745)

Collection cell accessory views set to "Disclosure Indicator" will now
use template mode and will utilize the tinting of the cell/collection
view.

Closes #1575

* [NavigationBar] Improve centering when barButtonItems are asymmetric (#1721)

* [NavigationBar] Improve centering when barButtonItems are asymmetric

Adjusting the NavigationBar layout computation to determine if there is
sufficient space in the center of the navigation bar before adjusting
the Title frame. Adding NavBar example for varying item sizes.

Closes #1662

* Adding a few comments to describe how we're centering

* [Math] Align frames to pixel boundaries (#1730)

Adding a new function to realign a CGRect (frame) to pixel boundaries
based on the screen scale. After a review of the catalog, I'm updating
the areas where I found misaligned frames.

Closes #1723

* [TextFields] Multiline examples.

* [TextFields] Minor corrections to multiline examples.

* [TextFields] Multiline full width example scrolls when keyboard comes up.

* [TextFields] Removing extra file.

* [TextField] Formatting.

* [TextField] Formatting.

* [TextFields] Formatting. (#1748)

* [TextField] Correcting copyright.

* [TextField] Corrections to fix warnings and errors in multiline example.

* [Text fields] Trailing view support (#1747)

* [TextFields] Trailing view work.

* [TextFields] Multiline trailing view layout.

* [TextFields] Formatting.

* [TextFields] Spelling correction.

* [TextFields] Comment.
2017-08-09 09:52:34 -04:00
Will Larche
980b9080f0 [TextFields] Formatting. (#1748) 2017-08-07 18:44:08 -04:00
Will Larche
7d706cddda [Text fields] Simplification of height calculation. (#1733)
* [TextFields] Simplifying height calculations

* [TextFields] Correcting logic of text insets in element.

* [TextFields] Updating tests for corrected height calculations

* [TextFields] Improving look of disabled text field height.

* [TextFields] Simplifying logic for height of all text fields and styles.
2017-08-03 17:40:09 -07:00
Will Larche
80f7a1b58d [TextFields] Renaming a tests file. (#1718) 2017-07-28 13:12:15 -04:00
Will Larche
b73c23cf18 [Textfields] Better naming two tests (#1704)
* [TextFields] Renaming a test for clarity.

* [TextFields] Renaming a test to remove redundant words.
2017-07-26 19:21:21 -04:00
Will Larche
9cb9a209c5 [TextFields] Overlay views. (#1676)
Maps leftView and rightView of text field map to leading and trailing.

Adds a mandatory trailing view to the text input protocol.
2017-07-25 09:45:40 -04:00
Will Larche
ff618a457a [TextFields] Tests for default priorities of constraints. (#1678)
* [TextFields] Tests for default priorities of constraints.

* [TextFields] Added comment explaining test.
2017-07-24 16:07:09 -04:00
Will Larche
7a1ad7b4c4 [TextFields] Correcting active color. (#1640) 2017-07-13 11:04:57 -04:00
Will Larche
36ef081eea [TextFields] Appearance defaults (#1620)
* [TextFields] UIAppearance substitute: class properties.

* [TextFields] Formatting.

* [TextFields] Minor correction to class properties.

* [TextFields] Correcting mistakenly deleted usage of default.

* [TextFields] Correcting defaults.

* [TextFields] Correcting test class.

* [TextFields] Adding tear downs to reset the class properties.

* [TextFields] Corrections to tests.

* [TextFields] Removing Swift 4 syntax.

* [TextFields] Formatting.

* [TextFields] Formatting.

* [TextFields] Correcting property attribute.

* [TextFields] Formatting.

* [TextFields] null_resettable that was missing.

* [TextFields] Better documentation for defaults.

* [TextFields] Documentation improvements.

* [TextFields] Corrections to floating placeholder scale.
2017-07-12 17:31:18 -04:00