builds but idk
parent
ae49a5cbfe
commit
c069860c43
|
@ -95,7 +95,8 @@ struct Pane: View {
|
||||||
|
|
||||||
// var handleVisibilityChanged: (String, VisibilityChange, VisibilityTracker<String>) -> Void
|
// var handleVisibilityChanged: (String, VisibilityChange, VisibilityTracker<String>) -> Void
|
||||||
|
|
||||||
var body: some View{
|
var body: some View {
|
||||||
|
ZStack {
|
||||||
ScrollViewReader { proxy in
|
ScrollViewReader { proxy in
|
||||||
VisibilityTrackingScrollView(action: handleVisibilityChanged) {
|
VisibilityTrackingScrollView(action: handleVisibilityChanged) {
|
||||||
LazyVStack {
|
LazyVStack {
|
||||||
|
@ -191,7 +192,27 @@ struct Pane: View {
|
||||||
.zIndex(1)
|
.zIndex(1)
|
||||||
.background(Color(red: 0.2, green: 0.2, blue: 0.2))
|
.background(Color(red: 0.2, green: 0.2, blue: 0.2))
|
||||||
.frame(width: width, height: height)
|
.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<String>) {
|
func handleVisibilityChanged(_: String, change _: VisibilityChange, tracker: VisibilityTracker<String>) {
|
||||||
// var printRate: Int64 = 10
|
// var printRate: Int64 = 10
|
||||||
|
|
Loading…
Reference in New Issue