Add intrinsic sized bottom sheet

This commit is contained in:
Alfonso Grillo
2022-11-09 12:05:47 +01:00
parent f0027faba3
commit 1538a3b6ac
4 changed files with 44 additions and 9 deletions
@@ -48,6 +48,7 @@ struct InfoSheet: View {
.foregroundColor(theme.colors.primaryContent)
.accessibilityIdentifier(viewModel.viewState.description)
.padding([.leading, .trailing], padding)
.fixedSize(horizontal: false, vertical: true)
}
.layoutPriority(1)
@@ -70,7 +71,7 @@ struct InfoSheet: View {
}
.padding(.bottom, padding)
.padding(.top, 32)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.frame(maxWidth: .infinity)
.background(theme.colors.background.ignoresSafeArea(edges: .bottom))
}
}