GithubHelp home page GithubHelp logo

ramotion / fluid-slider Goto Github PK

View Code? Open in Web Editor NEW
2.0K 2.0K 151.0 9.71 MB

:octocat:๐Ÿ’ง A slider widget with a popup bubble displaying the precise value selected. Swift UI library made by @Ramotion

Home Page: https://www.ramotion.com/fluid-slider/

License: MIT License

Swift 96.12% Objective-C 1.85% Ruby 2.03%
ios library swift

fluid-slider's People

Contributors

0ber avatar alexmik89 avatar boherna avatar chebur avatar igork-ramotion avatar ikolpachkov avatar juriv avatar ramotiondev avatar rishi420 avatar ronnielsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fluid-slider's Issues

The angled shape appears.

When you move the slide to the end, you see the angled shape in the corner.
The used phone is iPhone X.
slider

Popping animation

I made it work, but I am unable to get popping animation. Is it suppose to be this way, or am I missing something ? Or is it just the simulator ?

slider

framework not found fluid_slider

ld: warning: directory not found for option '-F/Users/mt/Library/Developer/Xcode/DerivedData/Example-erbzcbnkrlutncedbyrdaevikjvj/Build/Products/Debug-iphonesimulator/fluid-slider'
ld: framework not found fluid_slider
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I tried to clean & build no luck...

I have no idea why I am getting this error. Im not even sure if this is related to the framework or just my Mac. I tried to re-install the pods, w iOS 11.2. I am missing something but I don't know what ??

Help please.

My podfile:

# Uncomment the next line to define a global platform for your project
platform :ios, '11.2'

target 'Example' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

pod 'pop', '~> 1.0'
pod 'fluid-slider'

  # Pods for Example

end

By the way I also tried running w source files.

Second popup bubble for range

Hi all,

is there a method of adding a second popup bubble to the slider to create a range function ?
I want to create a popup bubble for the minimum value and one for the maximum value.
If yes, can somebody give me an example.
Thanks a lot!

sliderValueChanged

Hi there!

I'm trying to get the current slider value as soon as the slider is dragged.
I've added an action for this called sliderValueChanged but how can I get the current sliderValue now?

Thanks!

Issue with carthage integration

Hello I am getting multiple issues with the carthage integration of this project in my app when submitting the app to the AppStore as follows:

App Store Connect Operation Error
CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'com.facebook.pop' under the iOS application 'MyApp.app'.
App Store Connect Operation Error
Invalid Bundle. The bundle at 'MyApp.app/Frameworks/Slider.framework' contains disallowed nested bundles.
App Store Connect Operation Error
Invalid Bundle. The bundle at 'MyApp.app/Frameworks/Slider.framework' contains disallowed file 'Frameworks'.

I am copying the frameworks using the carthage utilities. So I am wondering what I am doing wrong here. If I don't copy them it just doesn't work.

I am using Xcode 10.2 and Carthage 0.33.0

Bubble not connected

I am experiencing a problem where the bubble is not connected to the bar as is shown in your animated gif.

fluid

I am using code from your example project.

Bug

Swipe from the middle to the left or right with a thin line beyond the parent view

Cannot import pop

Hi,
when trying to include the component into a project via Carthage i get the following error:
[โ€ฆ]/Carthage/Checkouts/fluid-slider/Sources/ValueView.swift:10:8: error: no such module 'pop' import pop

Minimum and Maximum Value for Slider Fraction

How can i change the slider minimum value default 0 to another?
I am changing the minimum and maximum label attributed text but I am unable to change the default minimum fraction value that starts from 0 and the maximum value of fraction

img_0662

In iOS 13.1 and Xcode 11 Slider does not work

I just downloaded iOS 13.1 and build my app with the new Xcode 11. The Slider does not work at all. It is impossible to slide, and the nob does not bounce well, and when I do not do anything, the slider looks like this.

IMG_F916C6ABFB75-1

Any Other way to set Min & Max Values

I can't figure out
sliderAge.attributedTextForFraction = { fraction in let formatter = NumberFormatter() formatter.minimum = 18 formatter.maximumIntegerDigits = 3 formatter.maximumFractionDigits = 0 let string = formatter.string(from: (fraction * 80) as NSNumber) ?? "" print("string\(string) , friction\(fraction) , \((fraction * 500))") return NSAttributedString(string: string, attributes: [.font: CalmUtility().setFont(type: .Bold, size: 12), .foregroundColor: UIColor.black]) }
can you please let me know how to set fraction to 18-80 for age range

Increment slider value

I am looking to add a way to use increments of 5. So if I had max set to 100, it would jump 5, 10, 15... 85, 90,95 , 100 and allow no other values. Is there any way to currently do this or an easy way to add this functionality?

Animation doesn't work on simulator

fluid_slider
why is this animation doesn't work on simulator? any idea?

device ios 12 and ios 13 tested. working.
simulator only ios 13 tested. not working.

Failed to 'import Slider' No such Module found

So I tried to embedd the fluid slider into my project and I get an Error message when I try to import the the Library. I tried to do the same thing like the Example project. I don't get it why I get this error.

bildschirmfoto 2018-03-21 um 16 22 16

And I don't think there is something wrong with my Podfile.

bildschirmfoto 2018-03-21 um 16 21 45

Would be nice if someone could help.

Current value of the slider

Sorry if this is a stupid question, but I can't seem to figure out how to read the current value of the slider?

Increment by X amount

I am looking to add a way to use increments of 10. So if I had max set to 100, it would jump 10, 20, 30... 80, 90, 100 and allow no other values. Is there any way to currently do this or an easy way to add this functionality?

For Kotlin, I would guess we would need to modify the ACTION_MOVE event?

Negative number

I want to start my slider from -100 to 100.
I can set the -100 on slider but when I try to slide bubble not show negative numbers.
Is it possible to work with negative numbers?

Dont like design

After install and configuration, I got a result not the same with design
Untitled-1
What attributes to make solid between a circle and rectangle?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.