المشاريع
عرض على GitHub
xai3/Nori
حول
Easier to apply code based style guide to storyboard.
التعلّم والتعليمالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلNori
Nori designs the view of the storyboard with source code.

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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…