All Projects → tolgahan-arikan → CountdownView

tolgahan-arikan / CountdownView

Licence: MIT license
Simple countdown view with custom animations

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to CountdownView

howlonguntilprayuthleaves.com
นับเวลาถอยหลังถึงวันที่พลเอกประยุทธ์ จันทร์โอชา หมดวาระการเป็นนายกรัฐมนตรี
Stars: ✭ 29 (-58.57%)
Mutual labels:  countdown, countdown-timer
ZXCountDownView
【杀不死的倒计时】一个简单易用的倒计时View,常用于快速创建点击获取验证码按钮,支持各种自定义样式。(特点:重新进入当前页面或重启程序倒计时不会重置,仍将继续执行,且退出程序后的时间也会被自动计算在内)
Stars: ✭ 56 (-20%)
Mutual labels:  countdown, countdown-timer
vue-flip-down
vue 翻页倒计时组件 妙啊
Stars: ✭ 90 (+28.57%)
Mutual labels:  countdown, countdown-timer
CountdownTimer-TeLeTiPs
The very first powerful Telegram bot to countdown to your important events in any group chat. Live countdown timer (days : hours : minutes : seconds)
Stars: ✭ 122 (+74.29%)
Mutual labels:  countdown, countdown-timer
yii2-time-down-counter
Widget for yii2, to start count down timer with a lot of options, This widget build dependence of timeDownCounter JS library
Stars: ✭ 15 (-78.57%)
Mutual labels:  countdown, countdown-timer
react-timer-wrapper
Composable React Timer component that passes status props to children, in addition to some basic callbacks. Can be used at a countdown timer ⏲ or as stopwatch ⏱ to track time while active.
Stars: ✭ 14 (-80%)
Mutual labels:  countdown, countdown-timer
rn-circle-quick-actions
React Native library to display a modal popup quick actions menu
Stars: ✭ 41 (-41.43%)
Mutual labels:  popup
Bonsai
🌲 Bonsai makes your view controller custom size.
Stars: ✭ 63 (-10%)
Mutual labels:  popup
Ambar-Xamarin
A macOS Menu Bar app built with Xamarin and C#
Stars: ✭ 63 (-10%)
Mutual labels:  popup
use-countdown-timer
React hook exposing a countdown timer with optional expiration reset callbacks
Stars: ✭ 31 (-55.71%)
Mutual labels:  countdown
SimpleToast
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or MacOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.
Stars: ✭ 131 (+87.14%)
Mutual labels:  popup
CountDownTimerSwift
This is a simple and beautiful countdown timer project done using swift
Stars: ✭ 18 (-74.29%)
Mutual labels:  countdown-timer
MaterialDesign-Toast
Custom android Toast with Material Design
Stars: ✭ 70 (+0%)
Mutual labels:  popup
SKChoosePopView
SKChoosePopView是一个HUD风格的可定制化选项弹窗的快速解决方案,集成了上、下、左、右、中5个进场方向的6种动画效果,如果不能满足你对酷炫效果的需要,SKChoosePopView同样支持自定义动画,以及选择记录、动画的开闭、点击特效、行列数量控制等
Stars: ✭ 70 (+0%)
Mutual labels:  popup
countdown
jQuery CountDown Clock - Simple countdown plugin for product special offers
Stars: ✭ 33 (-52.86%)
Mutual labels:  countdown
ng2-dialog-window
Modal/dialog windows and popups module for Angular applications.
Stars: ✭ 17 (-75.71%)
Mutual labels:  popup
easyCountDownTimer
A simple android library to countdown timer textview for api 14+
Stars: ✭ 61 (-12.86%)
Mutual labels:  countdown-timer
Customized-Popup
Customized popup provides you independency related to how you want to show a popup according to your UX.
Stars: ✭ 13 (-81.43%)
Mutual labels:  popup
ArminC-uBlock-Settings
⚙️ ArminC's settings for uBlock₀ - remove most of the ads, pop-ups and trackers.
Stars: ✭ 24 (-65.71%)
Mutual labels:  popup
react-redux-modal-flex
[DEPRECATED] Make easy a modal/popup with Redux
Stars: ✭ 14 (-80%)
Mutual labels:  popup

CountdownView

CocoaPods Compatible

Preview

Installation

Disclaimer note that came after 3 years: I would not suggest to actually use this. It was mostly a learning experience. In case you are trying to build something similar and trying to find a starting point, I would advise just checking the animation implementation part.

If you want to use it anyway, you can just add the CountdownView folder to your project.

Usage

  1. use the basic show method or the one with completion block and automatic hiding
CountdownView.show(countdownFrom: Double, spin: Bool, animation: Animation)
CountdownView.show(countdownFrom: Double, spin: Bool, animation: Animation, autoHide: Bool, completion: (()->())?)
  1. hide if you didn't use auto hiding
CountdownView.hide(animation: Animation, options: (duration: Double, delay: Double), completion: (()->())?)

Animation options

  • fadeIn
  • fadeOut
  • fadeInLeft
  • fadeInRight
  • fadeOutLeft
  • fadeOutRight
  • zoomIn
  • zoomOut

Customizing

You can access the properties below from CountdownView's shared instance before you call the show function as you can see in the example and customize it any way you like and need.

Example

CountdownView.shared.frameSize = CGSize(width: 200.0, height: 200.0)

CountdownView.shared.backgroundViewColor = UIColor.cyan

CountdownView.shared.dismissStyle = .byTapOnOutside
 
CountdownView.show(countdownFrom: Double, spin: Bool, animation: Animation)

All properties

public var dismissStyle: DismissStyle
public var dismissStyleAnimation: Animation

public var frameSize: CGSize
public var framePosition: CGPoint

public var backgroundViewColor: UIColor

public var counterViewBackgroundColor: UIColor
public var counterViewShadowColor: UIColor
public var counterViewShadowRadius: CGFloat
public var counterViewShadowOpacity: Float

public var spinnerLineWidth: CGFloat
public var spinnerInset: CGFloat
public var spinnerStartColor: UIColor
public var spinnerEndColor: UIColor
public var colorTransition: Bool 

public var counterLabelFont: UIFont
public var counterLabelTextColor: UIColor

public var counterSubLabelText: String
public var counterSubLabelFont: UIFont
public var counterSubLabelTextColor: UIColor  

public var closeButtonTitleLabelText: String
public var closeButtonTitleLabelFont: UIFont
public var closeButtonTitleLabelColor: UIColor
public var closeButtonTopAnchorConstant: CGFloat
public var closeButtonLeftAnchorConstant: CGFloat
public var closeButtonImage: UIImage
public var closeButtonTintColor: UIColor

Requirements

  • iOS 9.0+
  • Swift 3+

License

CountdownView is available under the MIT license. See the LICENSE file for more info.

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].