3 Commits

Author SHA1 Message Date
Andrew Overton
c56d5d76d3
Add @objc annotations to get examples to show up in Dragons (#7168)
This is a follow up PR for #7166 adds @objc annotations to Swift catalogMetadata() methods, because the Swift 4 compiler no longer attempts to infer what methods should be visible to Objective-C. As a result of this change in the compiler, no Swift examples were showing up in Dragons after #7166. See this article: https://useyourloaf.com/blog/objc-warnings-upgrading-to-swift-4/ for additional context.
2019-04-17 21:35:43 -04:00
Andrew Overton
b38372192f
Update to Swift 4.2 (#7166)
This PR updates the Swift version to 4.2.

Partially resolves #6874.
2019-04-17 16:59:02 -04:00
Andrew Overton
41428ef329
[TextFields] Updates to MDCContainedInputView and SimpleTextField (#6904)
* Refactor simple text field manual layout example code

* Make clear button layout calculation more understandable

* Have density informer protocol provide floating font scale factor instead of floating font size

* Send editingChanged event when clearing text

* Extract some placeholder management into a common object

* Run clang format

* Add WIP fancy animations to filled style

* In the middle of dealing with vertical density

* ITF vertical density is in a good place at the expense of ICV vertical density

* Run clang format

* Update input chip view density and example

* Add dynamic type support

* Ran clang format

* remove dead code

* Add a density informer method for the padding around the toprow/bottomrow divider

* Refactor placeholder animation code

* Ran clang format

* Refactor some placeholder layout logic

* Add nullability annotations

* Add missing nullability annotation

* Get rid of framework import for now

* Cast CAAnimation to CABasicAnimation

* Rename containerRect to containerFrame

* A bunch of property, class, and file renamings

* beginning to split floating label and placeholder. also some renamings

* Ran clang format

* More renamings

* More renamings

* Ran clang format

* A ton of renamings, some of which may need a second look ...

* More work separating floating label and placeholder

* Ran clang format

* About to make placeholder a UILabel again :(

* Placeholder and floating label are behaving pretty well together

* Fix placeholder appearance in text field

* Get rid of unneeded method

* Added some docs and got rid of the density informer method for bottom padding

* Get rid of some dead code

* Ran clang format

* Add nullability annotation

* Add CGFloat cast

* Renamed some things

* Positioning delegates no longer inherit from a root class, and they are passed into style object initializers
2019-04-11 15:12:30 -04:00