Skip to content

Commit 4516172

Browse files
author
Maksim Kudriavtsev
committed
Add MainActor annotations for Swift 6.2
1 parent f1c8fc3 commit 4516172

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Source/Classes/Internal/Extensions/UIViewController+Children.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import UIKit
99

10+
@MainActor
1011
extension UIViewController {
1112
func addChild(_ child: UIViewController, in containerView: UIView) {
1213
guard containerView.isDescendant(of: view) else { return }

Source/Classes/Internal/HeightContraintOverlayTranslationController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ protocol HeightConstraintOverlayTranslationControllerDelegate: AnyObject {
3636
func translationControllerDidScheduleTranslations(_ translationController: OverlayTranslationController)
3737
}
3838

39+
@MainActor
3940
class HeightConstraintOverlayTranslationController: OverlayTranslationController {
4041

4142
weak var delegate: HeightConstraintOverlayTranslationControllerDelegate?

Source/Classes/Internal/InterruptibleAnimatorOverlayContainerTransitionCoordinator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import UIKit
99

10+
@MainActor
1011
class InterruptibleAnimatorOverlayContainerTransitionCoordinator: OverlayContainerTransitionCoordinator {
1112

1213
private let animator: UIViewImplicitlyAnimating

0 commit comments

Comments
 (0)