All Projects → lojals → Reactionbutton

lojals / Reactionbutton

Licence: mit
Since Facebook introduced reactions in 2016, it became a standard in several applications as a way for users to interact with content. ReactionButton is a control that allows developers to add this functionality to their apps in an easy way.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Reactionbutton

Dropdownmenukit
UIKit drop down menu, simple yet flexible and written in Swift
Stars: ✭ 246 (-19.34%)
Mutual labels:  uikit, control
Distancepicker
Custom UIKit control to select a distance with a pan gesture, written in Swift
Stars: ✭ 118 (-61.31%)
Mutual labels:  uikit, control
Passwordrules
A Swift library for defining strong password generation rules
Stars: ✭ 281 (-7.87%)
Mutual labels:  uikit
Chakra Ui
⚡️Simple, Modular & Accessible UI Components for your React Applications
Stars: ✭ 295 (-3.28%)
Mutual labels:  uikit
Contraflutterkit
A Flutter UI kit with 50 plus screens for beginners to learn.
Stars: ✭ 288 (-5.57%)
Mutual labels:  uikit
Time Selector
Android Time Selector Library
Stars: ✭ 285 (-6.56%)
Mutual labels:  selector
Uikitplus
🏰 Declarative UIKit with LivePreview for iOS9+ (best alternative to SwiftUI)
Stars: ✭ 294 (-3.61%)
Mutual labels:  uikit
Tensorforce
Tensorforce: a TensorFlow library for applied reinforcement learning
Stars: ✭ 3,062 (+903.93%)
Mutual labels:  control
Wlemptystate
WLEmptyState is an iOS based component that lets you customize the view when the dataset of a UITableView or a UICollectionView is empty. We created a sample project with the WLEmptyState component to show how you can use it.
Stars: ✭ 305 (+0%)
Mutual labels:  uikit
Framework Codeidea
System file classification
Stars: ✭ 289 (-5.25%)
Mutual labels:  uikit
Mbtileparser
MBTileParser is a game engine written using pure UIKit in the days before SpriteKit.
Stars: ✭ 297 (-2.62%)
Mutual labels:  uikit
Nbaseuikit
个人平时使用的一些Qt编写的组件(有部分是整合的开源作品,部分是自己原创);
Stars: ✭ 286 (-6.23%)
Mutual labels:  uikit
Chakra Ui
⚡️ Simple, Modular & Accessible UI Components for your React Applications
Stars: ✭ 22,745 (+7357.38%)
Mutual labels:  uikit
Deskapp
DeskApp Admin is a free to use Bootstrap 4 admin template.
Stars: ✭ 296 (-2.95%)
Mutual labels:  uikit
Selectmenu
Simple, easily and diversity menu solution
Stars: ✭ 284 (-6.89%)
Mutual labels:  selector
Metaballs
Blob effect implementation with UIKIt
Stars: ✭ 300 (-1.64%)
Mutual labels:  uikit
Verge
🟣 Verge is a very tunable state-management engine on iOS App (UIKit / SwiftUI) and built-in ORM.
Stars: ✭ 273 (-10.49%)
Mutual labels:  uikit
Flutter photo
Pick image/video from album by flutter. Support ios and android. UI by flutter, no native.
Stars: ✭ 285 (-6.56%)
Mutual labels:  selector
Wtrequestcenter
WTKit is my Code accumulation
Stars: ✭ 293 (-3.93%)
Mutual labels:  uikit
Memoize State
The magic memoization for the State management. ✨🧠
Stars: ✭ 305 (+0%)
Mutual labels:  selector


Since Facebook introduced reactions in 2016, it became a standard in several applications as a way for users to interact with content. ReactionButton is a control that allows developers to add this functionality to their apps in an easy way.

Features

  • [x] Support of Dark Mode
  • [x] Customizable layout using ReactionButtonDelegateLayout
  • [x] Extensible DataSource for the control
  • [x] Layout support for scrolling interfaces (UICollectionView/UITableView)
  • [x] Codable initializer for usage on storyboards
  • [x] Events

Requirements

  • iOS 13.0+
  • Swift 5.0+

Installation

Usage

1. Basic Instance

There are multiple ways to instantiate a ReactionButton, using a frame, storyboards, or an empty convenience initializer.

Example Code

let buttonSample = ReactionButton(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
buttonSample.dataSource = self
view.addSubview(buttonSample)

Basic usage

Images from Trump reactionpacks style.

2. Delegate

The ReactionButton has a delegate to communicate events of option selection, option focus, and cancel of actions. To use it, set the ReactionButtonDelegate conform as a delegate.

let buttonSample = ReactionButton(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
buttonSample.delegate = self
view.addSubview(buttonSample)

Delegate example

Images from Trump reactionpacks style.

3. Custom layout instance

ReactionButton allows customization of the layout with the help of ReactionButtonDelegateLayout. To use it, please conform to that protocol and set it as delegate (Same pattern as UICollectionView).

func ReactionSelectorConfiguration(_ selector: ReactionButton) -> ReactionButton.Config {
  ReactionButton.Config(spacing: 2,
                        size: 30,
                        minSize: 34,
                        maxSize: 45,
                        spaceBetweenComponents: 30)
}

You can custom your selector with the following variables, used in the

New

sizes

Author

Jorge Ovalle, [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].