diff --git a/Fenestra.swift b/Fenestra.swift index 48f4b7e..6dbb1a7 100644 --- a/Fenestra.swift +++ b/Fenestra.swift @@ -95,7 +95,8 @@ struct Pane: View { // var handleVisibilityChanged: (String, VisibilityChange, VisibilityTracker) -> Void - var body: some View{ + var body: some View { + ZStack { ScrollViewReader { proxy in VisibilityTrackingScrollView(action: handleVisibilityChanged) { LazyVStack { @@ -191,7 +192,27 @@ struct Pane: View { .zIndex(1) .background(Color(red: 0.2, green: 0.2, blue: 0.2)) .frame(width: width, height: height) + + if self.paneConnector.showOverlay { + Rectangle() + // .frame(width: width, height: height + 200) + .background(.ultraThinMaterial) + .opacity(0.98) + .offset(y: -50) + .frame(width: width, height: height + 100) + + // .blur(radius: 0.8) + // .opacity(1) + .transition(.opacity) + + // .frame(width: geometry.size.width - 50) + // .offset(x: pulledOut.width) + // .offset(x: viewState.width, y: viewState.height) + .zIndex(2) + } } + .frame(width: width, height: height) + } func handleVisibilityChanged(_: String, change _: VisibilityChange, tracker: VisibilityTracker) { // var printRate: Int64 = 10