commit 0b2b30d91c99171e2d62bdc79af3e6a136e9f955
parent ccf49be9fff08c5725da4f726deb5315a86c2efc
Author: Michael Camilleri <[email protected]>
Date: Tue, 24 Mar 2026 13:50:04 +0900
Remove print debugging statements
Diffstat:
3 files changed, 0 insertions(+), 27 deletions(-)
diff --git a/ListlessiOS/Extensions/TaskListView+PullGestures.swift b/ListlessiOS/Extensions/TaskListView+PullGestures.swift
@@ -51,15 +51,12 @@ extension TaskListView {
let isFlick = pullOffset > 0 && elapsed > 0
&& (pullOffset / elapsed) >= flickThreshold
- print("[PullToCreate][handlePhaseChange] pullOffset=\(pullOffset) elapsed=\(elapsed) isFlick=\(isFlick) threshold=\(pullThreshold)")
if pullOffset >= pullThreshold || isFlick {
isInsertionPending = true
- print("[PullToCreate][handlePhaseChange] -> createTask")
return .createTask
}
isInsertionPending = false
- print("[PullToCreate][handlePhaseChange] -> collapseIndicator")
return .collapseIndicator
}
}
@@ -132,7 +129,6 @@ private struct PullGesturesModifier: ViewModifier {
guard oldPhase == .interacting, newPhase != .interacting else { return }
- print("[PullToCreate][scrollPhaseAction] action=\(action) pullOffset=\(pullToCreate.pullOffset) indicatorOffset=\(pullToCreate.indicatorOffset)")
switch action {
case .createTask:
var transaction = Transaction(animation: nil)
diff --git a/ListlessiOS/Extensions/TaskListView+PullToCreate.swift b/ListlessiOS/Extensions/TaskListView+PullToCreate.swift
@@ -12,7 +12,6 @@ extension TaskListView {
}
clearDragState()
draftTitle = ""
- print("[PullToCreate][revealPhantomRow] pullOffset=\(pState.pullToCreate.pullOffset)")
draftPlacement = .prepend
fState.selectedTaskID = taskID
fState.pendingFocus = .task(taskID)
diff --git a/ListlessiOS/Views/TaskListView.swift b/ListlessiOS/Views/TaskListView.swift
@@ -181,7 +181,6 @@ struct TaskListView: View, TaskListViewProtocol {
func clearDraftTaskUI(at placement: DraftTaskPlacement, hasTitle: Bool) {
let clear: () -> Void = {
- print("[PullToCreate][clearDraftTaskUI] placement=\(placement) hasTitle=\(hasTitle) isInsertionPending=\(pState.pullToCreate.isInsertionPending) indicatorOffset=\(pState.pullToCreate.indicatorOffset)")
if draftPlacement == placement {
draftPlacement = nil
}
@@ -252,7 +251,6 @@ struct TaskListView: View, TaskListViewProtocol {
? 0
: min(pullOffset, indicatorHeight + rowGap)
let opacity: Double = isPrependDraftVisible || pullOffset <= 0 ? 0 : 1
- let _ = print("[PullToCreate][Indicator] pullOffset=\(pullOffset) indicatorDisplayOffset=\(indicatorDisplayOffset) frameHeight=\(frameHeight) opacity=\(opacity) isPrependDraftVisible=\(isPrependDraftVisible)")
PullToCreateIndicator(
pullOffset: max(0, indicatorDisplayOffset),
threshold: pullCreateThreshold
@@ -262,17 +260,11 @@ struct TaskListView: View, TaskListViewProtocol {
alignment: .top
)
.opacity(opacity)
- .onGeometryChange(for: CGRect.self) {
- $0.frame(in: .global)
- } action: { frame in
- print("[PullToCreate][Indicator][Geo] frame=\(frame)")
- }
}
/// The draft row content styled to match a task row. Controlled by the
/// ZStack in ``pullToCreateIndicatorRow`` rather than its own visibility.
@ViewBuilder private var draftPrependRow: some View {
- let _ = print("[PullToCreate][DraftRow] visible isInsertionPending=\(pState.pullToCreate.isInsertionPending)")
DraftRowView(
accentColor: taskColor(
forIndex: 0, total: max(1, displayActiveTasks.count + 1), theme: colorTheme
@@ -373,9 +365,6 @@ struct TaskListView: View, TaskListViewProtocol {
proxy.frame(in: .global)
} action: { frame in
layoutStorage.rowFrames[taskID] = frame
- if index == 0 {
- print("[PullToCreate][FirstTask][Geo] frame=\(frame)")
- }
}
.padding(.bottom, rowGap)
.id(taskID)
@@ -485,20 +474,9 @@ struct TaskListView: View, TaskListViewProtocol {
if isPrependDraftVisible {
draftPrependRow
.padding(.bottom, rowGap)
- .onGeometryChange(for: CGRect.self) {
- $0.frame(in: .global)
- } action: { frame in
- print("[PullToCreate][DraftRow][Geo] frame=\(frame)")
- }
}
taskRows
}
- .offset(y: 0)
- .onGeometryChange(for: CGRect.self) {
- $0.frame(in: .global)
- } action: { frame in
- print("[PullToCreate][VStack][Geo] frame=\(frame)")
- }
.frame(maxWidth: .infinity, alignment: .topLeading)
.onGeometryChange(for: CGFloat.self) {
$0.frame(in: .global).maxY