This commit is contained in:
Thomas Ricouard 2023-09-18 18:55:11 +02:00
parent 27102cbae3
commit 8bb102cd67
12 changed files with 12 additions and 1 deletions

View file

@ -27,6 +27,7 @@ struct ProfileTab: View {
} else {
AccountDetailView(account: .placeholder())
.redacted(reason: .placeholder)
.allowsHitTesting(false)
}
}
.onChange(of: $popToRootTab.wrappedValue) { _, newValue in

View file

@ -213,6 +213,7 @@ struct AddAccountView: View {
.foregroundColor(.gray)
}
.redacted(reason: .placeholder)
.allowsHitTesting(false)
.shimmering()
.listRowBackground(theme.primaryBackgroundColor)
}

View file

@ -266,6 +266,7 @@ struct SupportAppView: View {
.padding(.vertical, 8)
}
.redacted(reason: .placeholder)
.allowsHitTesting(false)
.shimmering()
}
}

View file

@ -153,6 +153,7 @@ public struct AccountDetailView: View {
account: .placeholder(),
scrollViewProxy: proxy)
.redacted(reason: .placeholder)
.allowsHitTesting(false)
case let .data(account):
AccountDetailHeaderView(viewModel: viewModel,
account: account,

View file

@ -23,6 +23,7 @@ public struct AccountsListView: View {
ForEach(Account.placeholders()) { _ in
AccountsListRow(viewModel: .init(account: .placeholder(), relationShip: .placeholder()))
.redacted(reason: .placeholder)
.allowsHitTesting(false)
.shimmering()
.listRowBackground(theme.primaryBackgroundColor)
}

View file

@ -82,6 +82,7 @@ public struct AppAccountsSelectorView: View {
} else {
AvatarView(url: nil, size: avatarSize)
.redacted(reason: .placeholder)
.allowsHitTesting(false)
}
}.overlay(alignment: .topTrailing) {
if !currentAccount.followRequests.isEmpty || showNotificationBadge, accountCreationEnabled {

View file

@ -101,6 +101,7 @@ public struct ConversationDetailView: View {
ForEach(Status.placeholders()) { message in
ConversationMessageView(message: message, conversation: viewModel.conversation)
.redacted(reason: .placeholder)
.allowsHitTesting(false)
.padding(.vertical, 4)
}
}

View file

@ -34,6 +34,7 @@ public struct ConversationsListView: View {
ConversationsListRow(conversation: $conversation, viewModel: viewModel)
.padding(.horizontal, .layoutPadding)
.redacted(reason: .placeholder)
.allowsHitTesting(false)
} else {
ConversationsListRow(conversation: $conversation, viewModel: viewModel)
.padding(.horizontal, .layoutPadding)

View file

@ -126,6 +126,7 @@ public struct ExploreView: View {
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
.padding(.vertical, 8)
.redacted(reason: .placeholder)
.allowsHitTesting(false)
.listRowBackground(theme.primaryBackgroundColor)
}
}

View file

@ -114,13 +114,13 @@ public struct NotificationsListView: View {
client: client,
routerPath: routerPath,
followRequests: account.followRequests)
.redacted(reason: .placeholder)
.listRowInsets(.init(top: 12,
leading: .layoutPadding + 4,
bottom: 12,
trailing: .layoutPadding))
.listRowBackground(theme.primaryBackgroundColor)
.redacted(reason: .placeholder)
.allowsHitTesting(false)
}
case let .display(notifications, nextPageState):

View file

@ -148,6 +148,7 @@ public struct StatusDetailView: View {
ForEach(Status.placeholders()) { status in
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
.redacted(reason: .placeholder)
.allowsHitTesting(false)
}
}

View file

@ -31,6 +31,7 @@ public struct StatusesListView<Fetcher>: View where Fetcher: StatusesFetcher {
ForEach(Status.placeholders()) { status in
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
.redacted(reason: .placeholder)
.allowsHitTesting(false)
}
case .error:
ErrorView(title: "status.error.title",