drop working

undo
saint 2023-08-16 15:15:31 -04:00
parent 2de85571af
commit 8373831d47
2 changed files with 1 additions and 47 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -179,47 +179,6 @@ struct RibbonCrown : View {
}
.frame(width: CGFloat(100 * 1.66 * scale + 10 ), height:CGFloat(100 * scale + 5))
// Text(ribbon.title)
// .foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
// // // .background(Color(red: 0.3, green: 0.3, blue: 0.3))
// // .foregroundColor(.white))
// // .foregroundColor(.black)
// .frame(minWidth: CGFloat(75), maxWidth: CGFloat(75), minHeight: height, maxHeight: height, alignment: .center)
// // .background(.red)
// // .background(.yellow)
// .multilineTextAlignment(.center)
// // .minimumScaleFactor(0.5)
// .padding([.top, .bottom], 10)
// .font(Font.custom("AveriaSerifLibre-Regular", size: CGFloat(10)))
// .overlay( MyIcon().frame(width: CGFloat(100 * 1.66 * scale), height: CGFloat(100 * scale), alignment: .center) .foregroundColor(Color(UIColor(red: 0.30, green: 0.30, blue: 0.30, alpha: 0.4))))
// .offset(x: xOffset)
// .onTapGesture {
// Print("TAP")
// // selectedLine = seg.id
// // Print(selectedLine)
// }
// ForEach(sr) { selectedRibbon in
// let ribbonString = String(sr[0].id!) + " " + String(ribbon.id!) + " " + String(ribbon.scrollOffset) + " " + ribbon.scrollId
// Button(ribbonString,
// action: {
// Task {
// goToRibbon(selectedRibbon: sr[0],
// destRibbon: ribbon,
// scrollId: $scrollId,
// scrollOffset: $scrollOffset,
// refresh: $refresh,
// showOverlay: $showOverlay,
// appDatabase: appDatabase,
// loading: false)
// }
// }
// )
// .buttonStyle(BlueButtonStyle())
}
}
@ -504,15 +463,10 @@ struct ContentView: View {
Task {
DispatchQueue.main.async {
Print("scroll Id target: \(scrollId)")
proxy.scrollTo(scrollId! , anchor: .top)
// proxy.scrollTo(String(Int(scrollId!)! + 1))
// currentId = scrollId!
// if (currentId != scrollId!) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
@ -625,7 +579,7 @@ struct ContentView: View {
}
)
Text("DRAG")
Text("DRAG").foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
.gesture(
DragGesture()
.onChanged { gesture in