Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Remove trailing whitespaces #1060

Merged
merged 1 commit into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading