Continue adopting MainActor.

This commit is contained in:
Brent Simmons
2023-04-08 15:42:52 -07:00
parent 397012e23b
commit d06632da0b
8 changed files with 8 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ protocol MasterFeedTableViewSectionHeaderDelegate {
func masterFeedTableViewSectionHeaderDisclosureDidToggle(_ sender: MasterFeedTableViewSectionHeader)
}
class MasterFeedTableViewSectionHeader: UITableViewHeaderFooterView {
@MainActor class MasterFeedTableViewSectionHeader: UITableViewHeaderFooterView {
var delegate: MasterFeedTableViewSectionHeaderDelegate?

View File

@@ -9,7 +9,7 @@
import UIKit
import Articles
struct MasterTimelineCellData {
@MainActor struct MasterTimelineCellData {
private static let noText = NSLocalizedString("(No Text)", comment: "No Text")

View File

@@ -21,7 +21,7 @@ protocol MasterTimelineCellLayout {
}
extension MasterTimelineCellLayout {
@MainActor extension MasterTimelineCellLayout {
static func rectForUnreadIndicator(_ point: CGPoint) -> CGRect {
var r = CGRect.zero

View File

@@ -9,7 +9,7 @@
import UIKit
import RSCore
struct MasterTimelineDefaultCellLayout: MasterTimelineCellLayout {
@MainActor struct MasterTimelineDefaultCellLayout: MasterTimelineCellLayout {
static let cellPadding = UIEdgeInsets(top: 12, left: 8, bottom: 12, right: 20)

View File

@@ -9,7 +9,7 @@
import UIKit
import RSCore
class MasterTimelineTableViewCell: VibrantTableViewCell {
@MainActor class MasterTimelineTableViewCell: VibrantTableViewCell {
private let titleView = MasterTimelineTableViewCell.multiLineUILabel()
private let summaryView = MasterTimelineTableViewCell.multiLineUILabel()

View File

@@ -8,7 +8,7 @@
import UIKit
class MasterUnreadIndicatorView: UIView {
@MainActor class MasterUnreadIndicatorView: UIView {
override func layoutSubviews() {
super.layoutSubviews()

View File

@@ -26,7 +26,7 @@ struct TextFieldSizeInfo {
let numberOfLinesUsed: Int // A two-line text field may only use one line, for instance. This would equal 1, then.
}
final class MultilineUILabelSizer {
@MainActor final class MultilineUILabelSizer {
private let numberOfLines: Int
private let font: UIFont

View File

@@ -12,7 +12,7 @@ import UIKit
// Uses a cache.
// Main thready only.
final class SingleLineUILabelSizer {
@MainActor final class SingleLineUILabelSizer {
let font: UIFont
private var cache = [String: CGSize]()