GithubHelp home page GithubHelp logo

olegam / classylivelayout Goto Github PK

View Code? Open in Web Editor NEW
278.0 278.0 30.0 311 KB

Use Classy stylesheets together with Masonry to tweak AutoLayout constants live when debugging in the simulator.

License: MIT License

Ruby 3.84% Objective-C 96.16%

classylivelayout's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

classylivelayout's Issues

Trouble compiling the LiveLayoutDemo app

This issue is not code but rather compiler related, but I thought I'd ask anyway.

Here's what I've done and where I'm at:

  1. Downloaded ClassyLiveLayout-master.zip yesterday (Feb 2nd 2015)
  2. Unpacked zip (and no changes made) and ran pod install (successfully)
  3. Am using Xcode 6.1.1 and have tried different targets and simulators
  4. This is the error I get:
    masonry header file not found

Any ideas on why this error occurs and how I might solve it?

non-prefixed property names

If you would like to have the option of using non-prefixed property names in the stylesheet ie

UIView.blue-box {
    size: 120 80
    size-width: 50
}

You could add the following to the +load method of your category

CASObjectClassDescriptor *objectClassDescriptor = [[CASStyler defaultStyler] objectClassDescriptorForClass:UIView.class];
objectClassDescriptor.propertyKeyAliases = @{
    @"size"        : @cas_propertykey(UIView, cas_size),
    @"sizeWidth"   : @cas_propertykey(UIView, cas_sizeWidth),
    //...
};

This doesn't prevent you from using the original prefixed name but just creates an alias.
However might be confusing as you would still need to refer to the properties using the prefixed names in code. What are your thoughts?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.