Post not yet marked as solved
Post marked as unsolved with 0 replies, 278 views
Hello,
I just started to learn SwiftUI, and I have a issue:
why my TabBar isn't transparent when scrolling ?
Here's my code :
var body: some View {
VStack {
ZStack(alignment: .bottomTrailing) {
ScrollViewReader { scroll in
// my bubbles here
}
.padding(.bottom, 70)
.scrollDismissesKeyboard(.interactively)
ZStack {
HStack {
TextField("Type your message", text: $newMessage)
.padding(9)
.background(
RoundedRectangle(cornerRadius: 19)
.foregroundColor(Color(.systemGray6))
)
}
.padding()
}
}
}
}
Thank you and have a great day !