OPEN SOURCE CODE

A declarative “one-time” code utility in Swift

The complete source code for Swift-RunOnce is freely available on Github under the Apache 2.0 license.

A few weeks ago, the iOS team at Thumbtack created a utility that enables a developer to declaratively define “one-time” code—code that should execute at most once for the lifetime of an object. The…

Daniel Roth

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store