diff --git a/Mlem/App/Views/Root/Tabs/Inbox/InboxView+Views.swift b/Mlem/App/Views/Root/Tabs/Inbox/InboxView+Views.swift index 9c38179e2..607b0f826 100644 --- a/Mlem/App/Views/Root/Tabs/Inbox/InboxView+Views.swift +++ b/Mlem/App/Views/Root/Tabs/Inbox/InboxView+Views.swift @@ -8,31 +8,6 @@ import SwiftUI extension InboxView { - - @ViewBuilder - var allItemsView: some View { - ForEach(inboxFeedLoader.items, id: \.actorId) { item in - Group { - switch item { - case let .message(message): - MessageView(message: message) - case let .reply(reply): - ReplyView(reply: reply) - } - } - .padding([.horizontal, .bottom], Constants.main.standardSpacing) - .onAppear { - do { - try inboxFeedLoader.loadIfThreshold(item) - } catch { - handleError(error) - } - } - } - - EndOfFeedView(loadingState: feedLoader.loadingState, loadMore: nil, viewType: .cartoon) - } - @ViewBuilder var sectionHeader: some View { BubblePicker( diff --git a/Mlem/App/Views/Shared/EndOfFeedView.swift b/Mlem/App/Views/Shared/EndOfFeedView.swift index 71a93d8b9..66196291e 100644 --- a/Mlem/App/Views/Shared/EndOfFeedView.swift +++ b/Mlem/App/Views/Shared/EndOfFeedView.swift @@ -31,6 +31,7 @@ enum EndOfFeedViewType { struct EndOfFeedView: View { @Environment(Palette.self) var palette + @Setting(\.developerMode) var developerMode let loadingState: LoadingState let loadMore: (() -> Void)? @@ -45,6 +46,12 @@ struct EndOfFeedView: View { loadMore() } .buttonStyle(.bordered) + } else { + if developerMode { + Text("IDLE") + } else { + ProgressView() + } } case .loading: ProgressView() diff --git a/Mlem/Localizable.xcstrings b/Mlem/Localizable.xcstrings index f517bc747..16c8044d1 100644 --- a/Mlem/Localizable.xcstrings +++ b/Mlem/Localizable.xcstrings @@ -697,6 +697,9 @@ }, "I think I've found the bottom!" : { + }, + "IDLE" : { + }, "If an instance is \"guaranteed\", it is known as definitely not spam. Unguaranteed instances are not necessarily spam; rather, it is unknown whether a non-guaranteed instance is spam or not.\n\nAn instance can be guaranteed by any other guaranteed instance. This forms a chain of guaranteed instances known as the \"Chain of Trust\". The Chain of Trust starts at the Fediseer itself, which guarantees several of the largest instances.\n\nA guarantee can be revoked by the guarantor at any time. If an instance's guarantee is revoked, it returns to a \"not guaranteed\" state along with any instances it guarantees.\n\nOnce an instance has been guaranteed, it is able to express its approval or disapproval of other instances using endorsements, hesitations and censures." : {