Skip to content

Instantly share code, notes, and snippets.

Jason Howlin jhowlin

  • Northern Virginia
Block or report user

Report or block jhowlin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View counter.txt
class CounterController: ObservableObject {
static let shared = CounterController()
var timer:Timer?
@Published var numTimes = 0
init() {
timer = Timer.scheduledTimer(withTimeInterval: 3, repeats: true) { [weak self] timer in
self?.numTimes += 1
You can’t perform that action at this time.