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

Run swift-format #26

Merged
merged 1 commit into from
Dec 25, 2024
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
5 changes: 4 additions & 1 deletion Features/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/cybozu/LicenseList.git", exact: "1.1.1"),
.package(url: "https://github.com/pointfreeco/swift-composable-architecture.git", from: "1.17.0"),
.package(
url: "https://github.com/pointfreeco/swift-composable-architecture.git",
from: "1.17.0"
),
.package(url: "https://github.com/pointfreeco/swift-dependencies.git", from: "1.6.2"),
.package(url: "https://github.com/kishikawakatsumi/KeychainAccess.git", from: "4.2.2"),
.package(url: "https://github.com/konomae/swift-local-date.git", from: "0.4.1"),
Expand Down
11 changes: 8 additions & 3 deletions Features/Sources/Today/TodayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public struct TodayView: View {
}
.fullScreenCover(isPresented: $isPresentedFullScreenImage) {
FullScreenImageView(
closeButtonTapped: { isPresentedFullScreenImage = false },
closeButtonTapped: {
isPresentedFullScreenImage = false
},
hdImageURL: picture.hdURL,
image: image
)
Expand Down Expand Up @@ -166,7 +168,9 @@ public struct TodayView: View {
date: LocalDate(year: 2012, month: 7, day: 12),
explanation:
"What will become of our Sun? The first hint of our Sun's future was discovered inadvertently in 1764. At that time, Charles Messier was compiling a list of diffuse objects not to be confused with comets. The 27th object on Messier's list, now known as M27 or the Dumbbell Nebula, is a planetary nebula, one of the brightest planetary nebulae on the sky -- and visible toward the constellation of the Fox (Vulpecula) with binoculars. It takes light about 1000 years to reach us from M27, featured here in colors emitted by hydrogen and oxygen. We now know that in about 6 billion years, our Sun will shed its outer gases into a planetary nebula like M27, while its remaining center will become an X-ray hot white dwarf star. Understanding the physics and significance of M27 was well beyond 18th century science, though. Even today, many things remain mysterious about planetary nebulas, including how their intricate shapes are created.",
hdURL: URL(string: "https://apod.nasa.gov/apod/image/2107/M27_Falls_3557.jpg")!,
hdURL: URL(
string: "https://apod.nasa.gov/apod/image/2107/M27_Falls_3557.jpg"
)!,
mediaType: .image,
title: "M27: The Dumbbell Nebula",
url: URL(string: "https://apod.nasa.gov/apod/image/2107/M27_Falls_960.jpg")!
Expand Down Expand Up @@ -213,7 +217,8 @@ public struct TodayView: View {
picture: .init(
copyright: "\nSpaceX\n",
date: LocalDate(year: 2024, month: 10, day: 23),
explanation: "Mechazilla has caught the Super Heavy booster! pic.twitter.com/6R5YatSVJX",
explanation:
"Mechazilla has caught the Super Heavy booster! pic.twitter.com/6R5YatSVJX",
hdURL: nil,
mediaType: .other,
title: "Caught",
Expand Down