git.iko.soy/parseable-macos
on master help sign in
Fix column header drag-and-drop reordering (#41)
commit392b2972f6af912313162d43efe1a4f4f5096509 authoriko <mail@iko.soy> dateMon 16 Feb 2026, 02:10 (8 months ago) parent3299337
2 files changed+15−15
ParseableViewer.xcodeproj/project.pbxproj+1−1 ParseableViewer/Views/LogTableView.swift+14−14
ParseableViewer.xcodeproj/project.pbxproj+1−1
@@ -341,7 +341,7 @@
341341 );
342342 runOnlyForDeploymentPostprocessing = 0;
343343 shellPath = /bin/sh;
344− shellScript = "COMMIT_TIMESTAMP=$(TZ=UTC git log -1 --format='%cd' --date=format-local:'%Y%m%d.%H%M%S' 2>/dev/null)\nif [ -n \"$COMMIT_TIMESTAMP\" ]; then\n /usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${COMMIT_TIMESTAMP}\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\n /usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${COMMIT_TIMESTAMP}\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\nfi\n";
344+ shellScript = "COMMIT_TIMESTAMP=$(TZ=UTC git log -1 --format='%cd' --date=format-local:'%Y.%m.%d.%H%M' 2>/dev/null)\nif [ -n \"$COMMIT_TIMESTAMP\" ]; then\n /usr/libexec/PlistBuddy -c \"Set :CFBundleVersion ${COMMIT_TIMESTAMP}\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\n /usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString ${COMMIT_TIMESTAMP}\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\nfi\n";
345345 };
346346/* End PBXShellScriptBuildPhase section */
347347
ParseableViewer/Views/LogTableView.swift+14−14
@@ -358,27 +358,27 @@ struct LogHeaderView: View {
358358 HStack(spacing: 0) {
359359 ForEach(columns, id: \.self) { column in
360360 HStack(spacing: 0) {
361− Button {
361+ HStack(spacing: 2) {
362+ Text(column)
363+ .font(.caption.weight(.semibold))
364+ .lineLimit(1)
365+ if sortColumn == column {
366+ Image(systemName: sortAscending ? "chevron.up" : "chevron.down")
367+ .font(.caption2)
368+ }
369+ }
370+ .padding(.horizontal, 6)
371+ .padding(.vertical, 4)
372+ .contentShape(Rectangle())
373+ .onTapGesture {
362374 if sortColumn == column {
363375 sortAscending.toggle()
364376 } else {
365377 sortColumn = column
366378 sortAscending = true
367379 }
368− } label: {
369− HStack(spacing: 2) {
370− Text(column)
371− .font(.caption.weight(.semibold))
372− .lineLimit(1)
373− if sortColumn == column {
374− Image(systemName: sortAscending ? "chevron.up" : "chevron.down")
375− .font(.caption2)
376− }
377− }
378380 }
379− .buttonStyle(.plain)
380− .padding(.horizontal, 6)
381− .padding(.vertical, 4)
381+ .accessibilityAddTraits(.isButton)
382382 .accessibilityLabel(sortColumn == column
383383 ? "Sort by \(column), \(sortAscending ? "ascending" : "descending")"
384384 : "Sort by \(column)")