Comments (2)
Hi @MohamedSadek07 , thanks for using RangeUISlider in your project.
I checked a bit your issue, and seems like you're right: if I insert RangeUISlider inside a ScrollView it doesn't work.
After debugging for some time, it seems like the problem is not related to RangeUISlider itself. What is happening is that UIViewRepresentable
in a ScrollView doesn't always respect the frame calculate on the UIKit side.
To solve the issue you can explicitly set an height for RangeUISlider, like I did in this example I added to the demo app (you can clone the repo and test it)
77dc262#diff-67933792635b8aef27826455098894c1b13e2cfc89a3e58721390ef15e034f5a
This is the result
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-11-25.at.12.01.49.mp4
Let me know if you need any other information, and support my work by starring this repo โญ๏ธ. Thanks, Fabrizio.
from rangeuislider.
Thank you so much Fabrizio, it's working fine now.
from rangeuislider.
Related Issues (20)
- Add SwiftLint support
- Add code beat support HOT 1
- rangeNotSelectedColor issue HOT 2
- Issue when change dynamically defaultValueLeftKnob and defaultValueRightKnob HOT 7
- Moving labels under knobs HOT 6
- How to reset Slider HOT 1
- how to reset slider to initial value. HOT 7
- Add iPad build to CI + supported platform ๐ท
- Add codecov support ๐งช
- Can't reset min value HOT 3
- transparent selected and not selected color
- How to define a minimum distance between the two ranges ? HOT 1
- View does not respond if wrapped in a scrollview. HOT 2
- Building for "Any iOS Device (arm64)" fails HOT 3
- Detect Programatic change. HOT 8
- barBorderColor crash HOT 1
- changeLeftKnob(value:), changeRightKnob(value:) and Rxswift is not working.
- Can't I get the minValueSelected and maxValueSelected values directly?
- func changeLeftKnob(value: CGFloat), func changeRightKnob(value: CGFloat) didn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rangeuislider.