Skip to content

amir-ardalanuk/AACountDowner

Repository files navigation

AACountDowner

Cool CountDowner !

Requirements

  • iOS 10.0+
  • Xcode 8.1+
  • Swift 3.0+

Install

you can use in cocoapods

pod 'AACountDowner'

init

first :

@IBOutlet weak var vwCountDowner: AACountDowner!

next :

vwCountDowner.config(days: 1, hour: 1, minute: 1, second: 5)

or you can User Date but sure date is bigger than now

let date = Date()
vwCountDowner.config(withDate: date)

Style

Visibility :

vwCountDowner.Visiblity(forDay: true, hour: true, minute: true, seconds: true)

Ui option :

vwCountDowner.uiOption(haveShadow: true, background: UIColor.lightGray, radius: 5)
header title inVisible / visible
vwCountDowner.isTitleVisible = false 
font :
vwCountDowner.font = UIFont(name: "Verdana", size: 16)

element space :

vwCountDowner.elementSpacing = 0

Dot Divider : :

vwCountDowner.hasDotDivider = false

please! if you need more options , tell to me

License

AACountDowner is available under the MIT license. See the LICENSE file for more information.