souzainf3 / Rnloadingbutton Swift
Licence: mit
An easy-to-use UIButton subclass with an activity indicator
Stars: ✭ 181
Programming Languages
swift
15916 projects
Labels
Projects that are alternatives of or similar to Rnloadingbutton Swift
Rsformview
A Cocoapods library designed to easily create forms with multiple data entry fields
Stars: ✭ 84 (-53.59%)
Mutual labels: pod
Ckube
A cli to simplify working with kubectl for some common workflows
Stars: ✭ 127 (-29.83%)
Mutual labels: pod
Uiimage Imagecompress
An iOS library to compress images and optimize uploads
Stars: ✭ 155 (-14.36%)
Mutual labels: pod
Nim ios uikit
网易云信 iOS UI 组件,提供聊天界面,文本消息,图片消息,语音消息,视频消息,地理位置消息,自定义消息(阅后即焚)等消息示例。#推荐客户得比特币,首次推荐得0.02BTC,连续推荐得0.03BTC/单,上不封顶。点击参与https://yunxin.163.com/promotion/recommend
Stars: ✭ 1,326 (+632.6%)
Mutual labels: pod
K8s
Deploying Kubernetes High Availability Cluster with Ansible Playbook
Stars: ✭ 125 (-30.94%)
Mutual labels: pod
Xhnetworkcache
一行代码将网络数据持久化 - 支持数据同步/异步写入及更新、缓存数据读取、获取缓存数据大小、缓存数据清除.
Stars: ✭ 178 (-1.66%)
Mutual labels: pod
Luexpandabletableview
A subclass of UITableView with expandable and collapsible sections
Stars: ✭ 125 (-30.94%)
Mutual labels: pod
Fcuuid
iOS UUID / Universally Unique Identifiers library as alternative to UDID and identifierForVendor. 📱
Stars: ✭ 1,387 (+666.3%)
Mutual labels: pod
Fcipaddressgeocoder
iOS Geocoder for geocode device IP Address location using GeoIP service(s) and a block-based syntax. 💻🌍
Stars: ✭ 114 (-37.02%)
Mutual labels: pod
Fwsidemenu
侧滑控件:支持左、右滑动的侧滑菜单,可配置单侧滑动,同时可配置菜单宽度等,更多配置请参考”可设置参数“。参考了QQ用户体验:支持边缘侧滑,解决手势冲突问题(边缘范围可设置)。提供OC使用Demo。
Stars: ✭ 90 (-50.28%)
Mutual labels: pod
Zztools
包括: StarView星星评价(支持半星, 整星, 任意星, 支持拖动, 支持自定义星星图片, 数量, 大小, 间距, 最低分值). 瀑布流(垂直, 浮动, 混合模式瀑布流)等.
Stars: ✭ 175 (-3.31%)
Mutual labels: pod
Swifttwitch
👾 The New Twitch API for iOS; wrapped in Swift goodness 👾
Stars: ✭ 72 (-60.22%)
Mutual labels: pod
Abexpandableview
Expandable, collapsible, filterable and single/multi selectable table view.
Stars: ✭ 138 (-23.76%)
Mutual labels: pod
Modernavplayer
ModernAVPlayer is a persistence AVPlayer wrapper
Stars: ✭ 179 (-1.1%)
Mutual labels: pod
Filebeat Kubernetes
Filebeat container, alternative to fluentd used to ship kubernetes cluster and pod logs
Stars: ✭ 147 (-18.78%)
Mutual labels: pod
RNLoadingButton-Swift
RNLoadingButotn-Swift is based on RNLoadingButton write in Objective-C.
An easy-to-use UIButton subclass with an activity indicator.
The activity state is configurable and can hide the image or text while the activity indicator is displaying . You can Also choose the position of easily activity indicator or Set It up with a spacing.
Support
- [x] Swift 4 - Current version (5.x.x)
- [x] Swift 3 - (4.x.x)
- [x] Swift 2.3 (tag 3.2.0)
- [x] Swift 2.2 (tag 3.0.0)
- [x] Swift 1.2 (tag 2.0.0)
- [x] Swift 1.0 (tag 0.0.1)
Requirements
- iOS 8.0+ / Mac OS X 10.9+
- Xcode 8.0+, Swift 3
Adding RNLoadingButton-Swift to your project
Carthage
- Add
github "souzainf3/RNLoadingButton-Swift" "master"
to your Cartfile - Run
carthage update
to clone & build the framework
Cocoapods
- Add a pod entry for RNActivityView to your Podfile
pod 'RNLoadingButton-Swift'
- Install the pod(s) by running
pod install
.
Manually
- Drag RNLoadingButton.swift to your project
Using RNLoadingButton-Swift
RNLoadingView
is available in Interface Builder
//Mark: Buttons From Nib
// Configure State
btn1.hideTextWhenLoading = false
btn1.isLoading = false
btn1.activityIndicatorAlignment = RNActivityIndicatorAlignment.right
btn1.activityIndicatorEdgeInsets = UIEdgeInsets(top: 0, left: 50, bottom: 0, right: 10)
btn1.setTitleColor(UIColor(white: 0.673, alpha: 1.0), for: UIControlState.disabled)
btn1.setTitle("connecting", for: UIControlState.disabled)
btn1.activityIndicatorColor = .blue // Change the activity indicator color
Properties
- Loading state
isLoading: Bool
- Hide image when loading is visible
hideImageWhenLoading: Bool
- Hide text when loading is visible
hideTextWhenLoading: Bool
- Edge Insets to set activity indicator frame. Default is .zero
activityIndicatorEdgeInsets: UIEdgeInsets
- Activity Indicator Alingment. Default is '.center'
activityIndicatorAlignment: RNActivityIndicatorAlignment
- Activity Indicator style. Default is '.gray'
activityIndicatorViewStyle: UIActivityIndicatorViewStyle
- Color to activityIndicatorView. Default is 'nil'
activityIndicatorColor: UIColor
[email protected] )
Apps using this control (send your toNote 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].