All Projects → Ramotion → Fluid Slider

Ramotion / Fluid Slider

Licence: mit
💧 A slider widget with a popup bubble displaying the precise value selected. Swift UI library made by @Ramotion

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to Fluid Slider

Pyrogram
Telegram MTProto API Client Library and Framework in Pure Python for Users and Bots
Stars: ✭ 2,252 (+25.25%)
Mutual labels:  library
Simplecli
Command Line Interface Library for Arduino
Stars: ✭ 135 (-92.49%)
Mutual labels:  library
Pipelinr
PipelinR is a lightweight command processing pipeline ❍ ⇢ ❍ ⇢ ❍ for your Java awesome app.
Stars: ✭ 134 (-92.55%)
Mutual labels:  library
Csv2ofx
A Python library and command line tool for converting csv to ofx and qif files
Stars: ✭ 133 (-92.6%)
Mutual labels:  library
Fliptabs
Android Flip Tabs Library
Stars: ✭ 135 (-92.49%)
Mutual labels:  library
Animated Tab Bar
RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion
Stars: ✭ 10,904 (+506.45%)
Mutual labels:  library
Universum
🌌 Prelude written in @Serokell
Stars: ✭ 132 (-92.66%)
Mutual labels:  library
Pleco
A Rust-based re-write of the Stockfish Chess Engine
Stars: ✭ 137 (-92.38%)
Mutual labels:  library
Streamdeck Tools
The Stream Deck Tools library wraps all the communication with the Stream Deck app, allowing you to focus on actually writing the Plugin's logic
Stars: ✭ 133 (-92.6%)
Mutual labels:  library
Borealis
Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx).
Stars: ✭ 135 (-92.49%)
Mutual labels:  library
Dumpling
Dumpling is a fast, easy-to-use tool written by Go for dumping data from the database(MySQL, TiDB...) to local/cloud(S3, GCP...) in multifarious formats(SQL, CSV...).
Stars: ✭ 134 (-92.55%)
Mutual labels:  library
Szl
A lightweight, embeddable scripting language
Stars: ✭ 134 (-92.55%)
Mutual labels:  library
Gsm v5
gsm module library for STM32 LL
Stars: ✭ 135 (-92.49%)
Mutual labels:  library
C standard lib
source code of The Standard C Library, by Plauger
Stars: ✭ 133 (-92.6%)
Mutual labels:  library
Validatetor
Android library for fast and simple string validation
Stars: ✭ 136 (-92.44%)
Mutual labels:  library
Browser Id3 Writer
Pure JS library for writing ID3 tag to MP3 files in browsers and Node.js ✍️
Stars: ✭ 132 (-92.66%)
Mutual labels:  library
Easydeviceinfo
📱 [Android Library] Get device information in a super easy way.
Stars: ✭ 1,698 (-5.56%)
Mutual labels:  library
Wabbit
Golang AMQP mocking library
Stars: ✭ 137 (-92.38%)
Mutual labels:  library
Overflow Pager Indicator
Simple paging indicator widget with pager dataset ovewflow effect à la Instagram behavior
Stars: ✭ 136 (-92.44%)
Mutual labels:  library
Amqp
AMQP 1.0 client library for Go.
Stars: ✭ 135 (-92.49%)
Mutual labels:  library

FLUID SLIDER

A slider widget with a popup bubble displaying the precise value selected written on Swift.


We specialize in the designing and coding of custom UI for Mobile Apps and Websites.

Stay tuned for the latest updates:

Inspired by Virgil Pana shot


Twitter Carthage compatible codebeat badge Donate

Requirements

  • iOS 10.0
  • Xcode 9
  • Swift 4.0

Installation

You can install fluid-slider in several ways:

  • Add source files to your project.

pod 'fluid-slider'

github "Ramotion/fluid-slider"

Usage

Slider

import fluid_slider

The slider can be inserted in a view hierarchy as a subview. Appearance can be configured with a number of public attributes:

let slider = Slider()
slider.attributedTextForFraction = { fraction in
    let formatter = NumberFormatter()
    formatter.maximumIntegerDigits = 3
    formatter.maximumFractionDigits = 0
    let string = formatter.string(from: (fraction * 500) as NSNumber) ?? ""
    return NSAttributedString(string: string)
}
slider.setMinimumLabelAttributedText(NSAttributedString(string: "0"))
slider.setMaximumLabelAttributedText(NSAttributedString(string: "500"))
slider.fraction = 0.5
slider.shadowOffset = CGSize(width: 0, height: 10)
slider.shadowBlur = 5
slider.shadowColor = UIColor(white: 0, alpha: 0.1)
slider.contentViewColor = UIColor(red: 78/255.0, green: 77/255.0, blue: 224/255.0, alpha: 1)
slider.valueViewColor = .white
view.addSubview(slider)

Take a look at the Example project for an integration example.

Since Slider is a subclass of UIControl, it inherits target-action mechanics and it's possible to listen for user-triggered value changes:

slider.addTarget(self, action: #selector(sliderValueChanged), for: .valueChanged)

Tracking Behavior

There are a couple of callbacks which allow you to listen to the slider's tracking events:

    var didBeginTracking: ((Slider) -> ())?
    var didEndTracking: ((Slider) -> ())?

Animation Performance

This control is designed to use device CPU resources with care. The fluid-style animation will be disabled when low power mode is enabled or the system is under heavy load.

This library is a part of a selection of our best UI open-source projects.

🗂 Check this library on other language:

📄 License

Fluid Slider is released under the MIT license. See LICENSE for details.

This library is a part of a selection of our best UI open-source projects.

If you use the open-source library in your project, please make sure to credit and backlink to https://www.ramotion.com/

📱 Get the Showroom App for iOS to give it a try

Try this UI component and more like this in our iOS app. Contact us if interested.

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