fulldecent/FDWaveformView

Add range

rastaman111 opened this issue · 3 comments

Hey! add new functionality so that I can dynamically set a range and edit it, as well as the ability to select it for it. Thanks!

image

JanX2 commented

@rastaman111
Is the code for this available anywhere?

I need the same thing, I wonder if anyone has implemented this in the past and is willing to share. I'd code it myself but my Swift skills are not quite there yet.

This API is now supported at

/*@IBInspectable*/ open var zoomSamples: CountableRange<Int> = 0 ..< 0 {
didSet {
if zoomSamples.startIndex < 0{
print("rip")
}
setNeedsDisplay()
setNeedsLayout()
}
}