You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying a very simple dummy project to add a Scrollview in the sheet by using the PSType.scrollView as showed in the examples, but it doesn't work and even shows a UI glitch at the bottom of the sheet content while dragging.
Here is a simple app to demonstrate the issue:
import PartialSheet
import SwiftUI
@mainstructPartialSheetTestsApp:App{varbody:someScene{WindowGroup{NavigationView{ContentView()}.navigationViewStyle(.stack).attachPartialSheetToRoot()}}}structContentView:View{@Statevarshow= false
lettype=PSType.scrollView(height:200, showsIndicators: true)varbody:someView{Button("show"){ show.toggle()}.partialSheet(isPresented: $show, type: type, content:SheetContent.init)}}structSheetContent:View{varbody:someView{VStack(alignment:.leading, spacing:20){HStack{Spacer()Text("Privacy Policy").font(.headline)Spacer()}Text("Vestibulum iaculis sagittis sem, vel hendrerit ex.").font(.body).lineLimit(2)Divider()Text(""" Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce vestibulum porttitor ligula quis faucibus. Maecenas auctor tincidunt maximus. Donec lectus dui, fermentum sed orci gravida, porttitor porta dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce vestibulum porttitor ligula quis faucibus. Maecenas auctor tincidunt maximus. Donec lectus dui, fermentum sed orci gravida, porttitor porta dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce vestibulum porttitor ligula quis faucibus. Maecenas auctor tincidunt maximus. Donec lectus dui, fermentum sed orci gravida, porttitor porta dui.""")Spacer().frame(height:50)}.padding(.horizontal,10)}}
#Preview {NavigationView{ContentView()}.attachPartialSheetToRoot()}
I am trying a very simple dummy project to add a Scrollview in the sheet by using the
PSType.scrollView
as showed in the examples, but it doesn't work and even shows a UI glitch at the bottom of the sheet content while dragging.Here is a simple app to demonstrate the issue:
Live demo:
https://github.com/AndreaMiotto/PartialSheet/assets/50933/4d0f6b84-bdf8-4f04-9c64-292465539021
Xcode 15, PartialSheet 3.1.1
Same result on Preview, simulators and devices...
The text was updated successfully, but these errors were encountered: