From 3ecd51f99d1f7045ae00aafb9aea73299838f586 Mon Sep 17 00:00:00 2001 From: Andrei Solovev Date: Wed, 5 Jul 2023 10:22:55 +0700 Subject: [PATCH] Fix lint warnings --- OmiseSDK/CreditCardFormViewController.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/OmiseSDK/CreditCardFormViewController.swift b/OmiseSDK/CreditCardFormViewController.swift index 5ea14b91..300baaff 100644 --- a/OmiseSDK/CreditCardFormViewController.swift +++ b/OmiseSDK/CreditCardFormViewController.swift @@ -3,6 +3,7 @@ import UIKit import os.log +// swiftlint:disable line_length public protocol CreditCardFormViewControllerDelegate: AnyObject { /// Delegate method for receiving token data when card tokenization succeeds. /// - parameter token: `OmiseToken` instance created from supplied credit card data. @@ -57,22 +58,19 @@ public protocol OMSCreditCardFormViewControllerDelegate: AnyObject { @objc optional func creditCardFormViewControllerDidCancel(_ controller: CreditCardFormViewController) - // swiftlint:disable line_length @available(*, unavailable, message: "Implement the new -[OMSCreditCardFormViewControllerDelegate creditCardFormViewController:didSucceedWithToken:] instead", renamed: "creditCardFormViewController(_:didSucceedWithToken:)") - // swiftlint:enable line_length // swiftlint:disable:next attributes @objc func creditCardForm(_ controller: CreditCardFormViewController, didSucceedWithToken token: __OmiseToken) - // swiftlint:disable line_length @available(*, unavailable, message: "Implement the new -[OMSCreditCardFormViewControllerDelegate creditCardFormViewController:didFailWithError:] instead", renamed: "creditCardFormViewController(_:didFailWithError:)") - // swiftlint:enable line_length // swiftlint:disable:next attributes @objc func creditCardForm(_ controller: CreditCardFormViewController, didFailWithError error: NSError) } +// swiftlint:enable line_length @available(*, deprecated, renamed: "CreditCardFormViewController") public typealias CreditCardFormController = CreditCardFormViewController