From 257807236b919dfd01dd138b6fae4c5cf0fff462 Mon Sep 17 00:00:00 2001 From: woxtu Date: Sun, 3 Sep 2023 06:26:04 +0900 Subject: [PATCH] Remove trailing whitespaces --- app-ios/Modules/Sources/Component/CacheAsyncImage.swift | 8 ++++---- app-ios/Modules/Sources/Timetable/SessionTag.swift | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app-ios/Modules/Sources/Component/CacheAsyncImage.swift b/app-ios/Modules/Sources/Component/CacheAsyncImage.swift index b8e0f1078..aecc0dfb2 100644 --- a/app-ios/Modules/Sources/Component/CacheAsyncImage.swift +++ b/app-ios/Modules/Sources/Component/CacheAsyncImage.swift @@ -1,12 +1,12 @@ import SwiftUI public struct CacheAsyncImage: View where Content: View, PlaceHolder: View { - + private let url: URL? private let scale: CGFloat private let contentImage: (Image) -> Content private let placeholder: () -> PlaceHolder - + public init( url: URL?, scale: CGFloat = 1.0, @@ -18,7 +18,7 @@ public struct CacheAsyncImage: View where Content: View, P self.contentImage = contentImage self.placeholder = placeholder } - + public var body: some View { if let cachedImage = ImageCache[url] { contentImage(cachedImage) @@ -44,7 +44,7 @@ private extension CacheAsyncImage { private class ImageCache { static private var cache: [URL: Image] = [:] - + static subscript(url: URL?) -> Image? { get { guard let url else { return nil } diff --git a/app-ios/Modules/Sources/Timetable/SessionTag.swift b/app-ios/Modules/Sources/Timetable/SessionTag.swift index 2cf683698..5f736b321 100644 --- a/app-ios/Modules/Sources/Timetable/SessionTag.swift +++ b/app-ios/Modules/Sources/Timetable/SessionTag.swift @@ -1,12 +1,12 @@ import SwiftUI struct SessionTag: View { - + private let label: String private let labelColor: Color private let strokeColor: Color? private let backgroundColor: Color - + public init( _ label: String, labelColor: Color, @@ -18,7 +18,7 @@ struct SessionTag: View { self.strokeColor = strokeColor self.backgroundColor = backgroundColor } - + var body: some View { Text(label) .font(Font.system(size: 12, weight: .medium))