From b894891163cb8778275cbb06271d3cb1aa59241b Mon Sep 17 00:00:00 2001 From: solbat Date: Tue, 13 Dec 2022 20:31:37 +0900 Subject: [PATCH] =?UTF-8?q?[lint]=20lint=20=EC=88=98=EC=A0=95=20=EB=B0=8F?= =?UTF-8?q?=20=EC=A4=80=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SpaceCapsule/.swiftlint.yml | 1 + SpaceCapsule/SpaceCapsule/App/AppDelegate.swift | 6 +++++- .../Base/ViewModel/CapsuleCellItemNeedable.swift | 2 +- SpaceCapsule/SpaceCapsule/Components/Theme/ThemeLabel.swift | 2 +- SpaceCapsule/SpaceCapsule/Extensions/UIImage+.swift | 1 - 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/SpaceCapsule/.swiftlint.yml b/SpaceCapsule/.swiftlint.yml index a6d4f76..5fb1bda 100644 --- a/SpaceCapsule/.swiftlint.yml +++ b/SpaceCapsule/.swiftlint.yml @@ -67,3 +67,4 @@ identifier_name: - x - y - kr + - to diff --git a/SpaceCapsule/SpaceCapsule/App/AppDelegate.swift b/SpaceCapsule/SpaceCapsule/App/AppDelegate.swift index d13981e..ad32182 100644 --- a/SpaceCapsule/SpaceCapsule/App/AppDelegate.swift +++ b/SpaceCapsule/SpaceCapsule/App/AppDelegate.swift @@ -38,7 +38,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate { } extension AppDelegate: UNUserNotificationCenterDelegate { - func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { + func userNotificationCenter( + _ center: UNUserNotificationCenter, + willPresent notification: UNNotification, + withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void + ) { completionHandler([.banner, .badge, .sound]) } diff --git a/SpaceCapsule/SpaceCapsule/Base/ViewModel/CapsuleCellItemNeedable.swift b/SpaceCapsule/SpaceCapsule/Base/ViewModel/CapsuleCellItemNeedable.swift index ef4a0cd..258cc4c 100644 --- a/SpaceCapsule/SpaceCapsule/Base/ViewModel/CapsuleCellItemNeedable.swift +++ b/SpaceCapsule/SpaceCapsule/Base/ViewModel/CapsuleCellItemNeedable.swift @@ -15,7 +15,7 @@ extension CapsuleCellNeedable { return nil } - let capsuleCellItem = ListCapsuleCellItem ( + let capsuleCellItem = ListCapsuleCellItem( uuid: capsule.uuid, thumbnailImageURL: capsule.images.first, address: capsule.simpleAddress, diff --git a/SpaceCapsule/SpaceCapsule/Components/Theme/ThemeLabel.swift b/SpaceCapsule/SpaceCapsule/Components/Theme/ThemeLabel.swift index 18db828..ae40fb4 100644 --- a/SpaceCapsule/SpaceCapsule/Components/Theme/ThemeLabel.swift +++ b/SpaceCapsule/SpaceCapsule/Components/Theme/ThemeLabel.swift @@ -27,7 +27,7 @@ final class StatusLabel: ThemeLabel { let attrs2 = [NSAttributedString.Key.foregroundColor: UIColor.themeGray300] let nicknameText = NSMutableAttributedString(string: nickname, attributes: attrs1 as [NSAttributedString.Key: Any]) - let explanationText = NSMutableAttributedString(string: "님이 생성한 공간캡슐 ", attributes: attrs2 as [NSAttributedString.Key : Any]) + let explanationText = NSMutableAttributedString(string: "님이 생성한 공간캡슐 ", attributes: attrs2 as [NSAttributedString.Key: Any]) let capsuleCount = NSMutableAttributedString(string: capsuleCounts, attributes: attrs1 as [NSAttributedString.Key: Any]) let explanationText2 = NSMutableAttributedString(string: "개", attributes: attrs2 as [NSAttributedString.Key: Any]) diff --git a/SpaceCapsule/SpaceCapsule/Extensions/UIImage+.swift b/SpaceCapsule/SpaceCapsule/Extensions/UIImage+.swift index 135bb4f..3d22a44 100644 --- a/SpaceCapsule/SpaceCapsule/Extensions/UIImage+.swift +++ b/SpaceCapsule/SpaceCapsule/Extensions/UIImage+.swift @@ -35,4 +35,3 @@ extension UIImage { static let locationFill = UIImage(systemName: "location.fill") static let refresh = UIImage(systemName: "arrow.clockwise") } -