Fix swiftformat offenses

This commit is contained in:
Arkadiusz Fal 2024-06-13 19:05:09 +02:00
parent e3e0c4a92f
commit 5323d53f9e

View File

@ -127,7 +127,7 @@ struct FeedView: View {
.focused(self.$focusedChannel, equals: channel.id)
}
}
.onChange(of: self.focusedChannel, {
.onChange(of: self.focusedChannel) {
if self.focusedChannel == "all" {
withAnimation {
self.selectedChannel = nil
@ -141,7 +141,7 @@ struct FeedView: View {
}
}
}
})
}
.onAppear {
guard let selectedChannel = self.selectedChannel else {
return
@ -208,9 +208,9 @@ struct FeedView: View {
.font(.caption)
}
.opacity(feedChannelsViewVisible ? 0 : 1)
.frame(minWidth: (feedChannelsViewVisible ? 0 : nil), maxWidth: (feedChannelsViewVisible ? 0 : nil))
.frame(minWidth: feedChannelsViewVisible ? 0 : nil, maxWidth: feedChannelsViewVisible ? 0 : nil)
channelHeaderView
if (selectedChannel == nil) {
if selectedChannel == nil {
Spacer()
}
if feedChannelsViewVisible == false {
@ -222,7 +222,6 @@ struct FeedView: View {
if feedChannelsViewVisible == false {
if showCacheStatus {
CacheStatusHeader(
refreshTime: feed.formattedFeedTime,
isLoading: feed.isLoading
@ -249,7 +248,7 @@ struct FeedView: View {
}
var channelHeaderView: some View {
guard let selectedChannel = self.selectedChannel else {
guard let selectedChannel = selectedChannel else {
return AnyView(
Text("All Channels")
.font(.caption)