项目介绍:
Reactions
Reactions 是一个完全可定制,给人们更多的方式,以快速和容易的方式分享他们的感觉的control。
Requirements/环境需求
iOS 8.0+
Xcode 8.0+
Swift 3.0+
Reaction
一个 Reaction
对象包含以下属性:
-
id: a unique identifier.
-
title: the title displayed either in a selector or a button.
-
color: the color used to display the button title.
-
icon: the reaction icon.
-
alternativeIcon: the optional alternative icon used with the reaction button.
创建代码如下:
let myReaction = Reaction(id: "id", title: "title", color: .red, icon: UIImage(named: "name")!)