Address some Swift 6 warnings in Auth sample (#13130)

This commit is contained in:
Paul Beusterien authored and GitHub committed 2024-06-14 07:01:28 -07:00
1 parent 62c2dacb69
commit e1fab9ccdf
9 files changed
+19 -19

No files matched your search

@@ -17,7 +17,7 @@ import UIKit
/// Base UIViewController Class for presenting auth flows defined in
/// [OtherAuthMethods](x-source-tag://OtherAuthMethods)
class OtherAuthViewController: UIViewController {
weak var delegate: LoginDelegate?
weak var delegate: (any LoginDelegate)?
lazy var textField: UITextField = {
let textField = UITextField()
@@ -183,7 +183,7 @@ class OtherAuthViewController: UIViewController {
}
override func viewWillTransition(to size: CGSize,
with coordinator: UIViewControllerTransitionCoordinator) {
with coordinator: any UIViewControllerTransitionCoordinator) {
super.viewWillTransition(to: size, with: coordinator)
textFieldTopConstraint.constant = UIDevice.current.orientation.isLandscape ? 10 : 60
buttonTopConstraint.constant = UIDevice.current.orientation.isLandscape ? 15 : 110