Skip to content

Commit c3d3862

Browse files
[PM-28339] Remove nested LazyVStacks to improve scroll performance (#2191)
1 parent e853f2f commit c3d3862

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

BitwardenShared/UI/Tools/Send/Send/SendList/SendListView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private struct MainSendListView: View {
132132
/// interface, and a message indicating that no results were found.
133133
@ViewBuilder private var search: some View {
134134
if store.state.searchText.isEmpty || !store.state.searchResults.isEmpty {
135-
LazyVStack(spacing: 0) {
135+
VStack(spacing: 0) {
136136
if !store.state.searchResults.isEmpty {
137137
sendItemSectionView(
138138
sectionName: nil,
@@ -149,7 +149,7 @@ private struct MainSendListView: View {
149149
/// The list for this view, displayed when there is content to display.
150150
@ViewBuilder
151151
private func list(sections: [SendListSection]) -> some View {
152-
LazyVStack(alignment: .leading, spacing: 16) {
152+
VStack(alignment: .leading, spacing: 16) {
153153
if store.state.isSendDisabled {
154154
InfoContainer(Localizations.sendDisabledWarning)
155155
}

BitwardenShared/UI/Vault/Vault/AutofillList/VaultAutofillListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ private struct VaultAutofillListSearchableView: View {
142142
/// A view for displaying a list of sections with ciphers.
143143
@ViewBuilder
144144
private func cipherCombinedListView(_ sections: [VaultListSection]) -> some View {
145-
LazyVStack(spacing: 16) {
145+
VStack(spacing: 16) {
146146
ForEach(sections) { section in
147147
VaultListSectionView(
148148
section: section,

BitwardenShared/UI/Vault/Vault/VaultList/VaultListView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private struct SearchableVaultListView: View {
249249
///
250250
@ViewBuilder
251251
private func vaultContents(with sections: [VaultListSection]) -> some View {
252-
LazyVStack(spacing: 20) {
252+
VStack(spacing: 20) {
253253
vaultFilterRow
254254

255255
ForEach(sections) { section in

0 commit comments

Comments
 (0)