From 8373831d475a7f0f68c6d21035ad268499b2c90e Mon Sep 17 00:00:00 2001 From: saint Date: Wed, 16 Aug 2023 15:15:31 -0400 Subject: [PATCH] drop working --- .DS_Store | Bin 10244 -> 8196 bytes gloss/ContentView.swift | 48 +--------------------------------------- 2 files changed, 1 insertion(+), 47 deletions(-) diff --git a/.DS_Store b/.DS_Store index 9a75fc11c53e56dc35c877363ce06d2e4b1459ec..056833b7c344bf15410374273446c4fc8aee960e 100644 GIT binary patch delta 154 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aMAsJJm;H$S7|W*&iLW~LaY$%Vpt z91A`4PIKBEbp&!$CZ87OLI^MlD^30{%*VK3GoQ#lrpw&ze*qnBg8(2$?-hXCI^WLZx$5Y%?Q+F!3Y3k+9LY^ delta 375 zcmZp1XbF&DU|?W$DortDU{C-uIe-{M3-C-V6q~50$f&Y0U^hRb%4QycWM(GDE0YU_ z^*GiVR7m|4KI#bMs7yXB%!LqO6jqx2Uzm?EU^Ab{J|=b+h7yKUhT_QwMMYv5`Tm0e z&~OF@Hi!g})MH5Y%*jtq%E?axSY+A zV;5uwnGW;E_bO2gMEo E0DhNW%m4rY diff --git a/gloss/ContentView.swift b/gloss/ContentView.swift index 36934da..6b66fa6 100644 --- a/gloss/ContentView.swift +++ b/gloss/ContentView.swift @@ -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