better stats formatting
parent
1aae36dfbc
commit
8774723f43
78
Stats.swift
78
Stats.swift
|
@ -19,58 +19,52 @@ struct StatsPanel: View {
|
|||
Array(repeatElement(GridItem(.flexible()), count: columnCount))
|
||||
}
|
||||
var body: some View {
|
||||
LazyVGrid (columns:columns , spacing: 5) {
|
||||
VStack {
|
||||
Text("back Ribbon")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
RibbonDebug(ribbonDebug: RibbonDebugPrint(ribbon: backRibbon[0]))
|
||||
}
|
||||
HStack(spacing: 5) {
|
||||
VStack (spacing: 5) {
|
||||
|
||||
VStack {
|
||||
Text("next Ribbon")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
if (nextRibbon.count > 0) {
|
||||
RibbonDebug(ribbonDebug: RibbonDebugPrint(ribbon: nextRibbon[0]))
|
||||
VStack {
|
||||
Text("back Ribbon")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
RibbonDebug(ribbonDebug: RibbonDebugPrint(ribbon: backRibbon[0]))
|
||||
}
|
||||
|
||||
VStack {
|
||||
Text("next Ribbon")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
if nextRibbon.count > 0 {
|
||||
RibbonDebug(ribbonDebug: RibbonDebugPrint(ribbon: nextRibbon[0]))
|
||||
}
|
||||
}
|
||||
|
||||
VStack {
|
||||
Text("selected Ribbon")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
RibbonDebug(ribbonDebug: RibbonDebugPrint(ribbon: selectedRibbon[0]))
|
||||
}
|
||||
|
||||
VStack {
|
||||
Text("pc offset: \(paneConnector.currentOffset)")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
}
|
||||
|
||||
VStack {
|
||||
Text("pc id: \(paneConnector.currentId)")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
}
|
||||
}
|
||||
|
||||
VStack {
|
||||
Text("selected Ribbon")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
RibbonDebug(ribbonDebug: RibbonDebugPrint(ribbon: selectedRibbon[0]))
|
||||
}
|
||||
|
||||
|
||||
VStack (spacing: 5) {
|
||||
ForEach(RibbonMap(ribbons: allRibbons), id: \.self) { ribbon in
|
||||
Print("quack3: \(ribbon)")
|
||||
RibbonDebug(ribbonDebug: ribbon)
|
||||
}
|
||||
|
||||
//VStack(spacing: 10) {
|
||||
// Text("All Ribbons")
|
||||
// .foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
// .font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
|
||||
// ForEach(RibbonMap(ribbons: allRibbons), id: \.self) { ribbon in
|
||||
// //Print("quack2: \(ribbon)")
|
||||
// RibbonDebug(ribbonDebug: RibbonDebugPrint(ribbon: ribbon))
|
||||
// }
|
||||
//}
|
||||
|
||||
VStack {
|
||||
Text("pc offset: \(paneConnector.currentOffset)")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
}
|
||||
|
||||
VStack {
|
||||
Text("pc id: \(paneConnector.currentId)")
|
||||
.foregroundColor(Color(UIColor(red: 0.76, green: 0.76, blue: 0.76, alpha: 1.00)))
|
||||
.font(Font.custom("AveriaSerifLibre-Regular", size: fontSize))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -235,8 +235,8 @@ class PaneConnector: NSObject, ObservableObject {
|
|||
var currentId = ""
|
||||
var currentOffset = CGFloat()
|
||||
var visibilityTracker: VisibilityTracker<String>?
|
||||
var scrollId = ""
|
||||
var scrollOffset = CGFloat()
|
||||
@Published var scrollId = ""
|
||||
@Published var scrollOffset = CGFloat()
|
||||
var setScrollOffset: CGFloat?
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue