Skip to content

Commit

Permalink
yugkh
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 committed Apr 9, 2024
1 parent e083434 commit 10fd4de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Binary file not shown.
4 changes: 1 addition & 3 deletions AnimeGen/Buttons/Activity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,10 @@ extension ViewController {

timeLabel.attributedText = mutableAttributedString
}



func incrementCounter() {
counter += 1
updateTimeLabel()
}

}
10 changes: 6 additions & 4 deletions AnimeGen/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ class ViewController: UIViewController {
tagsLabel.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(tagsLabel)


// Time Label
timeLabel = UILabel()
timeLabel.textColor = .white
Expand All @@ -204,10 +205,11 @@ class ViewController: UIViewController {
timeLabel.numberOfLines = 0
timeLabel.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(timeLabel)

if activity {
timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(updateTimeLabel), userInfo: nil, repeats: true)
}

timeLabel.isHidden = !activity

timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(updateTimeLabel), userInfo: nil, repeats: true)


NSLayoutConstraint.activate([

Expand Down

0 comments on commit 10fd4de

Please sign in to comment.