iOS 样式 Gaikan

码农软件 · 软件分类 · 其他(Others) · 2019-07-17 15:59:38

软件介绍

Gaikan 是 Swift 中的一个 DSL 声明 ,提供了强大的样式功能。它是参照 JS 和 CSS 模块中的 CSS 创建出来的。

提供一个 Style 对象来设计 UIView(s) 。

let myLabelStyle: Style = [  .Color: UIColor.redColor(),  .Border: Border(width: 1, color: UIColor.greenColor()),  .Font: UIFont(name: "Courier", size: 24),        
]/// ORlet myLabelStyle = StyleRule() { (inout style: StyleRule) -> () in
  style.color = UIColor.redColor()
  style.border = Border(width: 1, color: UIColor.greenColor())
  style.font = UIFont(name: "Courier", size: 24)
}self.label.applyStyle(myLabelStyle)

可查看样品来了解如何将 Gaikan 集成到一个项目中。

本文地址:https://www.codercto.com/soft/d/10340.html

Reality Is Broken

Reality Is Broken

Jane McGonigal / Penguin Press HC, The / 2011-1-20 / USD 26.95

Visionary game designer Jane McGonigal reveals how we can harness the power of games to solve real-world problems and boost global happiness. More than 174 million Americans are gamers, and......一起来看看 《Reality Is Broken》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换