Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused @MainActor #129

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import Combine
import UIKit

@MainActor
class KanbanViewController: UIViewController {
private var cancellables = Set<AnyCancellable>()
private let itemHeight: CGFloat = KanbanLayoutProperty.labelHeight
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import Combine
import UIKit

@MainActor
class TextEditorViewController: UIViewController {
private let defaultFont = UIFont.preferredFont(forTextStyle: .body)
private let textView: UITextView = {
Expand Down Expand Up @@ -102,9 +101,7 @@ class TextEditorViewController: UIViewController {

subject.sink { [weak self] elements in
Task {
await MainActor.run { [weak self] in
self?.updateTextStorage(elements)
}
self?.updateTextStorage(elements)
}
}.store(in: &self.cancellables)

Expand Down