| 1234567891011121314151617181920 |
- // LoopFollow
- // Timers.swift
- import Foundation
- import UIKit
- extension MainViewController {
- func startGraphNowTimer(time: TimeInterval = 60) {
- graphNowTimer = Timer.scheduledTimer(timeInterval: time,
- target: self,
- selector: #selector(MainViewController.graphNowTimerDidEnd(_:)),
- userInfo: nil,
- repeats: true)
- }
- @objc func graphNowTimerDidEnd(_: Timer) {
- createVerticalLines()
- }
- }
|