mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-09-05 17:27:38 +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 {
|
} else {
|
||||||
AccountDetailView(account: .placeholder())
|
AccountDetailView(account: .placeholder())
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.onChange(of: $popToRootTab.wrappedValue) { _, newValue in
|
.onChange(of: $popToRootTab.wrappedValue) { _, newValue in
|
||||||
|
|
|
@ -213,6 +213,7 @@ struct AddAccountView: View {
|
||||||
.foregroundColor(.gray)
|
.foregroundColor(.gray)
|
||||||
}
|
}
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
.shimmering()
|
.shimmering()
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
}
|
}
|
||||||
|
|
|
@ -266,6 +266,7 @@ struct SupportAppView: View {
|
||||||
.padding(.vertical, 8)
|
.padding(.vertical, 8)
|
||||||
}
|
}
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
.shimmering()
|
.shimmering()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,6 +153,7 @@ public struct AccountDetailView: View {
|
||||||
account: .placeholder(),
|
account: .placeholder(),
|
||||||
scrollViewProxy: proxy)
|
scrollViewProxy: proxy)
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
case let .data(account):
|
case let .data(account):
|
||||||
AccountDetailHeaderView(viewModel: viewModel,
|
AccountDetailHeaderView(viewModel: viewModel,
|
||||||
account: account,
|
account: account,
|
||||||
|
|
|
@ -23,6 +23,7 @@ public struct AccountsListView: View {
|
||||||
ForEach(Account.placeholders()) { _ in
|
ForEach(Account.placeholders()) { _ in
|
||||||
AccountsListRow(viewModel: .init(account: .placeholder(), relationShip: .placeholder()))
|
AccountsListRow(viewModel: .init(account: .placeholder(), relationShip: .placeholder()))
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
.shimmering()
|
.shimmering()
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@ public struct AppAccountsSelectorView: View {
|
||||||
} else {
|
} else {
|
||||||
AvatarView(url: nil, size: avatarSize)
|
AvatarView(url: nil, size: avatarSize)
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
}
|
}
|
||||||
}.overlay(alignment: .topTrailing) {
|
}.overlay(alignment: .topTrailing) {
|
||||||
if !currentAccount.followRequests.isEmpty || showNotificationBadge, accountCreationEnabled {
|
if !currentAccount.followRequests.isEmpty || showNotificationBadge, accountCreationEnabled {
|
||||||
|
|
|
@ -101,6 +101,7 @@ public struct ConversationDetailView: View {
|
||||||
ForEach(Status.placeholders()) { message in
|
ForEach(Status.placeholders()) { message in
|
||||||
ConversationMessageView(message: message, conversation: viewModel.conversation)
|
ConversationMessageView(message: message, conversation: viewModel.conversation)
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
.padding(.vertical, 4)
|
.padding(.vertical, 4)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ public struct ConversationsListView: View {
|
||||||
ConversationsListRow(conversation: $conversation, viewModel: viewModel)
|
ConversationsListRow(conversation: $conversation, viewModel: viewModel)
|
||||||
.padding(.horizontal, .layoutPadding)
|
.padding(.horizontal, .layoutPadding)
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
} else {
|
} else {
|
||||||
ConversationsListRow(conversation: $conversation, viewModel: viewModel)
|
ConversationsListRow(conversation: $conversation, viewModel: viewModel)
|
||||||
.padding(.horizontal, .layoutPadding)
|
.padding(.horizontal, .layoutPadding)
|
||||||
|
|
|
@ -126,6 +126,7 @@ public struct ExploreView: View {
|
||||||
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
|
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
|
||||||
.padding(.vertical, 8)
|
.padding(.vertical, 8)
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -114,13 +114,13 @@ public struct NotificationsListView: View {
|
||||||
client: client,
|
client: client,
|
||||||
routerPath: routerPath,
|
routerPath: routerPath,
|
||||||
followRequests: account.followRequests)
|
followRequests: account.followRequests)
|
||||||
.redacted(reason: .placeholder)
|
|
||||||
.listRowInsets(.init(top: 12,
|
.listRowInsets(.init(top: 12,
|
||||||
leading: .layoutPadding + 4,
|
leading: .layoutPadding + 4,
|
||||||
bottom: 12,
|
bottom: 12,
|
||||||
trailing: .layoutPadding))
|
trailing: .layoutPadding))
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
case let .display(notifications, nextPageState):
|
case let .display(notifications, nextPageState):
|
||||||
|
|
|
@ -148,6 +148,7 @@ public struct StatusDetailView: View {
|
||||||
ForEach(Status.placeholders()) { status in
|
ForEach(Status.placeholders()) { status in
|
||||||
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
|
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ public struct StatusesListView<Fetcher>: View where Fetcher: StatusesFetcher {
|
||||||
ForEach(Status.placeholders()) { status in
|
ForEach(Status.placeholders()) { status in
|
||||||
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
|
StatusRowView(viewModel: .init(status: status, client: client, routerPath: routerPath))
|
||||||
.redacted(reason: .placeholder)
|
.redacted(reason: .placeholder)
|
||||||
|
.allowsHitTesting(false)
|
||||||
}
|
}
|
||||||
case .error:
|
case .error:
|
||||||
ErrorView(title: "status.error.title",
|
ErrorView(title: "status.error.title",
|
||||||
|
|
Loading…
Reference in a new issue