Popularity
4.0
Stable
Activity
0.0
Stable
296
10
7

Code Quality Rank: L5
Programming language: Swift
License: MIT License
Tags: Tools    
Latest version: v0.3.0

Nori alternatives and similar libraries

Based on the "Tools" category.
Alternatively, view Nori alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Nori or a related project?

Add another 'Tools' Library

README

Nori

Nori designs the view of the storyboard with source code.

nori

Usage

Label

Define the custom class that extends StyleableLabel as @IBDesignable. And implement the func intrinsicStyle() -> LabelStyle.

import Nori

@IBDesignable class LargeLabel: StyleableLabel {
    override func intrinsicStyle() -> LabelStyle {
        return LabelStyle {
            $0.textColor = Color.black.color
            $0.font = UIFont.systemFont(ofSize: FontSize.large.point)
        }
    }
}

Button

It's same as the Label.

@IBDesignable class StarButton: StyleableButton {
    override func intrinsicStyle(for state: UIControlState) -> ButtonStyle {
        return ButtonStyle {
            $0.backgroundColor = Color.green.color
            $0.cornerRadius = 10
            $0.title = LabelStyle {
                $0.textColor = UIColor.white
            }
        }
    }
}

Supported views

  • View
  • Button
  • ImageView
  • Label
  • TextField
  • Switch

License

Nori is released under the MIT license. See LICENSE for details.


*Note that all licence references and agreements mentioned in the Nori README section above are relevant to that project's source code only.