daprice / ios-tactile-slider Goto Github PK
View Code? Open in Web Editor NEWUIControl slider that can be dragged from any point within its bounds, similar to those in Control Center and Home.app
License: MIT License
UIControl slider that can be dragged from any point within its bounds, similar to those in Control Center and Home.app
License: MIT License
I tried to add image then it goes down from slider
internal func setupLayers() {
trackLayer.addSublayer(thumbLayer)
trackLayer.addSublayer(outlineLayer)
let uiview1 = UIView()
let uiview2 = UIView()
uiview1.frame = CGRect(x: 5, y: 0, width: thumbLayer.frame.width - 10 , height: 98)
uiview2.frame = CGRect(x: 5, y: 0, width: 44 , height: 44)
let appLightGrayColor = UIColor(red: 201.0/255.0, green: 201.0/255.0, blue: 201.0/255.0, alpha: 1.0)
uiview1.backgroundColor = appLightGrayColor
uiview1.layer.cornerRadius = 10
// uiview1.addSubview(uiview2)
// uiview2.center = uiview1.center
// uiview2.frame = uiview1.frame
uiview2.center = uiview1.center
uiview2.layer.contents = UIImage(named: "power-signal-white")?.cgImage
uiview2.layer.contentsGravity = CALayerContentsGravity.resizeAspect
// uiview1.center = uiview1.center
// uiview1.addSubview(uiview2)
uiview1.layer.addSublayer(uiview2.layer)
thumbLayer.addSublayer(uiview1.layer)
thumbLayer.addSublayer(thumbOutlineLayer)
}
This project requires Xcode 11.4 but that isn’t currently supported by Travis, so the build fails. When Travis gains support for Xcode 11.4 the config file will need to be updated.
Does it work with tvOS?
Update to 5.0 ?
I think this warning does not allow to render the IBInspectable requirements.
'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99.
Hi. Thanks for framework. How can I get onChangeValue function?
I think there is the following problem:
If the slider is set to isContinuous = false
and the user drags to the maximum or minimum, sendActions(for: .valueChanged)
is not fired.
Reason is, in didPan(sender: UIPanGestureRecognizer)
, you stop handing the pan if value == minimum && valueChange < 0
or value == maximum && valueChange > 0
.
Action should still be sent once even for minimum or maximum value.
Otherwise it is impossible to detect if slider is set to minimum/maximum.
Please add manager Swift Package Manager support
can you give me solution for outline. now issue is it's come entire slider i want that outline come only slider value which user slide this slider.
Hi thanks for this library, but you may want to open the cornerRadius properties on the next update. Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.