HorizontalDial
  • September 16, 2023

Preview


Requirements


  • iOS 8.0+
  • Swift 5

Storyboard support


Storyboard Screenshot

Installation


CocoaPods

use_frameworks!
pod “HorizontalDial”

Manually

To install manually the HorizontalDial in an app, just drag the HorizontalDial.swift file into your project.

Properties


Property Type Description
enableRange Bool Use range mode
minimumValue Double Acceptable minimum value
maximumValue Double Acceptable maximum value
value Double Value
tick Double Increase value
centerMarkColor UIColor Set center mark color
centerMarkWidth CGFloat Set center mark width
centerMarkHeightRatio CGFloat Set center mark height
centerMarkRadius CGFloat Set center mark radius
markColor UIColor Set mark color
markWidth CGFloat Set mark width
markRadius CGFloat Set mark radius
markCount Int The number of mark in view
padding Double Vertical offset from bottom in landscape mode
verticalAlign String Vertical Align as topmiddlebottom
lock Bool User input lock

Protocols


Protocol Description
horizontalDialWillBeginScroll(horizontalDial: HorizontalDial) This method is called whenever the HorizontalDial will begin an animated scroll.
horizontalDialDidEndScroll(horizontalDial: HorizontalDial) This method is called whenever the HorizontalDial will ends an animated scroll.
horizontalDialWillValueChanged(horizontalDial: HorizontalDial) This method is called whenever the HorizontalDial will value changed.
horizontalDialDidValueChanged(horizontalDial: HorizontalDial) This method is called whenever the HorizontalDial did value changed.

GitHub


View Github

YOU MIGHT ALSO LIKE...
CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...

HorizonSDK-iOS

Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...

LLSimpleCamera

LLSimpleCamera: A simple customizable camera - video recorder control LLSimpleCamera is a library for creating a customized camera - video ...

RSBarcodes_Swift

RSBarcodes allows you to read 1D and 2D barcodes using the metadata scanning capabilities introduced with iOS 7 and generate ...