mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
Address some Swift 6 warnings in Auth sample (#13130)
This commit is contained in:
1 parent
62c2dacb69
commit
e1fab9ccdf
9 files changed
+19
-19
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user