nicklockwood / layout

A declarative UI framework for iOS
MIT License
2.23k stars 97 forks source link

Add setStringValue:forExpression method on UIView #186

Open cadrega opened 4 years ago

cadrega commented 4 years ago

The setStringValue:forExpression method on UIView can set any value from a string, just like Layout does when looking at the XML attributes for a View. This expands the possibilities of the setValue:forExpression, which needs the value to be of the right type.

cadrega commented 4 years ago

I updated the branch, addressing your comments. Is that the right thing to do, or should I create a new pull request?

cadrega commented 4 years ago

Using this mod on Layout, I noticed two things:

By "not working" I mean the method has been called but no visible effect was achieved, and no error was spit out.