Skip to content

Instantly share code, notes, and snippets.

@h4yder
Created August 12, 2020 15:10
Show Gist options
  • Save h4yder/193b9c7cb4f27fda7d71552bb2db1b1a to your computer and use it in GitHub Desktop.
Save h4yder/193b9c7cb4f27fda7d71552bb2db1b1a to your computer and use it in GitHub Desktop.
private func incrementSeekValue() -> String {
var valueString = accumulationString
valueString.removeFirst()
if var value = Int(valueString) {
value += interval
return "+" + String(value)
}
return accumulationString
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment