From f4e71b41a1d5385c527604429625ad062f5e21bd Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 8 Apr 2023 15:45:32 -0700 Subject: [PATCH] Continue adopting MainActor. --- iOS/Article/ArticleExtractorButton.swift | 2 +- iOS/Article/ContextMenuPreviewViewController.swift | 2 +- iOS/Article/ImageTransition.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iOS/Article/ArticleExtractorButton.swift b/iOS/Article/ArticleExtractorButton.swift index cc1087888..517c7ec00 100644 --- a/iOS/Article/ArticleExtractorButton.swift +++ b/iOS/Article/ArticleExtractorButton.swift @@ -15,7 +15,7 @@ enum ArticleExtractorButtonState { case off } -class ArticleExtractorButton: UIButton { +@MainActor class ArticleExtractorButton: UIButton { private var animatedLayer: CALayer? diff --git a/iOS/Article/ContextMenuPreviewViewController.swift b/iOS/Article/ContextMenuPreviewViewController.swift index 3b7e18219..2d6e3e961 100644 --- a/iOS/Article/ContextMenuPreviewViewController.swift +++ b/iOS/Article/ContextMenuPreviewViewController.swift @@ -9,7 +9,7 @@ import UIKit import Articles -class ContextMenuPreviewViewController: UIViewController { +@MainActor class ContextMenuPreviewViewController: UIViewController { @IBOutlet weak var blogNameLabel: UILabel! @IBOutlet weak var blogAuthorLabel: UILabel! diff --git a/iOS/Article/ImageTransition.swift b/iOS/Article/ImageTransition.swift index 25951b301..dc4a66d6d 100644 --- a/iOS/Article/ImageTransition.swift +++ b/iOS/Article/ImageTransition.swift @@ -8,7 +8,7 @@ import UIKit -class ImageTransition: NSObject, UIViewControllerAnimatedTransitioning { +@MainActor final class ImageTransition: NSObject, UIViewControllerAnimatedTransitioning { private weak var webViewController: WebViewController? private let duration = 0.4