balestrapatrick / valuestepper Goto Github PK
View Code? Open in Web Editor NEWA Stepper object that displays its value.
License: MIT License
A Stepper object that displays its value.
License: MIT License
Hi,
I would like to change font(and size) of valueLabel, but it is private. Maybe you can add property to change font also?
ValueStepper.swift line 205
override open static var requiresConstraintBasedLayout: Bool
produces error:
Static declarations are implicitly 'final'; use 'public' instead of 'open'
There is a subtle bug in labelPressed
function on line 360. The following line of code
if newValue >= self.minimumValue || newValue <= self.maximumValue
must be replaced by
if newValue >= self.minimumValue && newValue <= self.maximumValue
The || operator must be replaced by && operator.
Hi,
can you add the support for Swift Package Manager??
Thank
so here is the attached gif of the bug:
basically happens when one presses +/- when the tableview is scrolling, it causes never ending acton (-- or ++ on the value). when one tries to to decrease while in never ending increment, it resists (as seen towards the end of the gif) and just continues to increment.
gonna do a PR.
I installed using Pod as indicated. Made no changes and instantly had the error. "Shared" is unavailable. Use New Controller based solution.
Using Xcode 8.3.3. Thanks for your help!
Howard
When we use ValueStepper in collectionView Cell, every time reusable cell is allocated, ValueStepper calls target method even though when it is not required. Also when altering value of the stepper, target method is called. What I think is you can remove Action(for:) from DidSet of value variable.
Looks like only a couple of issues
I got this error failed to render and update auto layout no suitable image found
after installing via cocoa pods
I need to add image on plus and minus but I dont see any option to add background image.
The return
statement on lines 255 and 265 prevent a normal tap from changing the value and forces the user to tap+hold to change the value when autorepeat is enabled. Removing these two lines will cause the control to behave like the standard UIStepper where a tap+release will change the value by the step amount exactly once and a tap+hold will still autorepeat the value change.
/// - decrease: decrease button has tag 0.
/// - increase: increase button has tag 1.
private enum Button: Int {
case decrease
case increase
}
You can not set the tag value of an element to 0. Need to modify that logic in order to get elements by tag value correctly.
/// - decrease: decrease button has tag 1.
/// - increase: increase button has tag 2.
private enum Button: Int {
case decrease = 1
case increase = 2
}
Hello, please add a callback If user Increment or decrement it would be a lot easier for us thanks, because for now we need to store the previous value to check if it's +1 / - 1
Hi
I am receiving this error when updating Carthage.
Can you help?
*** Skipped building ValueStepper due to the error:
Dependency "ValueStepper" has no shared framework schemes
Thanks
WTBM
Not sure what broke but the number in the middle is no longer appearing in the app. I'm about to dive in and see if I can see what is going on.
Hi, what pod should i add?
pod "ValueStepper"?
I have put the stepper in a tableViewCell, and for testing purposes every time the cell is show, the tint color is chosen randomly so, so once they go out of view, and come back they will have new color.
After coming back into view.
fix would be to add these into func tintColorDidChange()
increaseLayer.strokeColor = tintColor.cgColor
decreaseLayer.strokeColor = tintColor.cgColor
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.