mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-11 08:35:26 +00:00
Fix #1466
This commit is contained in:
parent
27102cbae3
commit
8bb102cd67
12 changed files with 12 additions and 1 deletions
|
@ -27,6 +27,7 @@ struct ProfileTab: View {
|
|||
} else {
|
||||
AccountDetailView(account: .placeholder())
|
||||
.redacted(reason: .placeholder)
|
||||
.allowsHitTesting(false)
|
||||
}
|
||||
}
|
||||
.onChange(of: $popToRootTab.wrappedValue) { _, newValue in
|
||||
|
|
|
@ -213,6 +213,7 @@ struct AddAccountView: View {
|
|||
.foregroundColor(.gray)
|
||||
}
|
||||
.redacted(reason: .placeholder)
|
||||
.allowsHitTesting(false)
|
||||
.shimmering()
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
}
|
||||
|
|
|
@ -266,6 +266,7 @@ struct SupportAppView: View {
|
|||
.padding(.vertical, 8)
|
||||
}
|
||||
.redacted(reason: .placeholder)
|
||||
.allowsHitTesting(false)
|
||||
.shimmering()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue