Skip to content

Commit

Permalink
Remove trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu committed Sep 2, 2023
1 parent e5f0fe3 commit 2578072
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions app-ios/Modules/Sources/Component/CacheAsyncImage.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import SwiftUI

public struct CacheAsyncImage<Content, PlaceHolder>: 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,
Expand All @@ -18,7 +18,7 @@ public struct CacheAsyncImage<Content, PlaceHolder>: View where Content: View, P
self.contentImage = contentImage
self.placeholder = placeholder
}

public var body: some View {
if let cachedImage = ImageCache[url] {
contentImage(cachedImage)
Expand All @@ -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 }
Expand Down
6 changes: 3 additions & 3 deletions app-ios/Modules/Sources/Timetable/SessionTag.swift
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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))
Expand Down

0 comments on commit 2578072

Please sign in to comment.