1.1.1: move info button to top-left; fix empty-lane drag-drop
- PedalView: the ⓘ info button now sits under the top-left corner screw instead of on the name plate. - BoardFlowView: empty region lanes (Stereo Unzip / Split / Parallel) were nearly transparent, so their drop target had no hit area and releases landed on nothing. Add contentShape(Rectangle()) so the whole lane frame accepts drops. (Core lane append already worked — verified by existing API tests.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
# Releases
|
# Releases
|
||||||
|
|
||||||
|
## 1.1.1 — 2026-06-26
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Pedal **ⓘ info button** moved to the top-left corner (under the corner screw),
|
||||||
|
out of the way of the name plate.
|
||||||
|
- Fixed **drag-and-drop into empty Stereo Unzip / Split / Parallel lanes** — an empty
|
||||||
|
lane is now fully hit-testable, so a dropped pedal registers instead of doing nothing.
|
||||||
|
|
||||||
## 1.1.0 — 2026-06-24
|
## 1.1.0 — 2026-06-24
|
||||||
|
|
||||||
### New pedals
|
### New pedals
|
||||||
|
|||||||
@@ -325,6 +325,10 @@ public struct BoardFlowView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(minWidth: BoardFlowView.laneMinWidth, alignment: .leading)
|
.frame(minWidth: BoardFlowView.laneMinWidth, alignment: .leading)
|
||||||
|
// Make the whole lane frame hit-testable: an empty lane is mostly transparent, so without
|
||||||
|
// this the drop target has almost no area and releases land on nothing (the bug where
|
||||||
|
// dropping into an empty Stereo Unzip / Split / Parallel lane did nothing).
|
||||||
|
.contentShape(Rectangle())
|
||||||
.overlay { dropOutline(active: dropTarget == laneID) }
|
.overlay { dropOutline(active: dropTarget == laneID) }
|
||||||
.dropDestination(for: String.self) { items, _ in
|
.dropDestination(for: String.self) { items, _ in
|
||||||
handleLaneDrop(items, lane: lane)
|
handleLaneDrop(items, lane: lane)
|
||||||
|
|||||||
@@ -216,8 +216,11 @@ public struct PedalView: View {
|
|||||||
private static let screwHalfSize: CGFloat = 4
|
private static let screwHalfSize: CGFloat = 4
|
||||||
private static let namePlateBackgroundOpacity: Double = 0.35
|
private static let namePlateBackgroundOpacity: Double = 0.35
|
||||||
private static let fontSizeNamePlate: CGFloat = 13
|
private static let fontSizeNamePlate: CGFloat = 13
|
||||||
/// Opacity of the trailing ⓘ info button on the name plate.
|
/// Opacity of the ⓘ info button.
|
||||||
private static let infoButtonOpacity: Double = 0.7
|
private static let infoButtonOpacity: Double = 0.7
|
||||||
|
/// Insets placing the ⓘ info button just under the top-left corner screw.
|
||||||
|
private static let infoButtonLeading: CGFloat = 5
|
||||||
|
private static let infoButtonTop: CGFloat = 20
|
||||||
private static let outerBorderLineWidth: CGFloat = 1.5
|
private static let outerBorderLineWidth: CGFloat = 1.5
|
||||||
private static let innerHighlightLineWidth: CGFloat = 1
|
private static let innerHighlightLineWidth: CGFloat = 1
|
||||||
private static let innerHighlightPadding: CGFloat = 1
|
private static let innerHighlightPadding: CGFloat = 1
|
||||||
@@ -283,6 +286,11 @@ public struct PedalView: View {
|
|||||||
|
|
||||||
// Corner screws — overlaid at the four corners
|
// Corner screws — overlaid at the four corners
|
||||||
screwCorners
|
screwCorners
|
||||||
|
|
||||||
|
// Info button, tucked just under the top-left corner screw.
|
||||||
|
infoButton
|
||||||
|
.padding(.leading, PedalView.infoButtonLeading)
|
||||||
|
.padding(.top, PedalView.infoButtonTop)
|
||||||
}
|
}
|
||||||
.frame(width: enclosureWidth(for: sliders))
|
.frame(width: enclosureWidth(for: sliders))
|
||||||
.shadow(
|
.shadow(
|
||||||
@@ -299,7 +307,7 @@ public struct PedalView: View {
|
|||||||
|
|
||||||
// MARK: - Subviews
|
// MARK: - Subviews
|
||||||
|
|
||||||
/// Capsule name plate near the top of the enclosure, with a trailing info button.
|
/// Capsule name plate near the top of the enclosure.
|
||||||
private var namePlate: some View {
|
private var namePlate: some View {
|
||||||
Text(pedal.displayName)
|
Text(pedal.displayName)
|
||||||
.font(.system(size: PedalView.fontSizeNamePlate, weight: .bold, design: .rounded))
|
.font(.system(size: PedalView.fontSizeNamePlate, weight: .bold, design: .rounded))
|
||||||
@@ -308,8 +316,10 @@ public struct PedalView: View {
|
|||||||
.padding(.vertical, PedalView.namePlatePaddingV)
|
.padding(.vertical, PedalView.namePlatePaddingV)
|
||||||
.background(Color.black.opacity(PedalView.namePlateBackgroundOpacity))
|
.background(Color.black.opacity(PedalView.namePlateBackgroundOpacity))
|
||||||
.clipShape(RoundedRectangle(cornerRadius: PedalView.namePlateCornerRadius))
|
.clipShape(RoundedRectangle(cornerRadius: PedalView.namePlateCornerRadius))
|
||||||
.frame(maxWidth: .infinity)
|
}
|
||||||
.overlay(alignment: .trailing) {
|
|
||||||
|
/// Info button tucked just under the top-left corner screw.
|
||||||
|
private var infoButton: some View {
|
||||||
Button {
|
Button {
|
||||||
showInfo = true
|
showInfo = true
|
||||||
} label: {
|
} label: {
|
||||||
@@ -320,7 +330,6 @@ public struct PedalView: View {
|
|||||||
.buttonStyle(.plain)
|
.buttonStyle(.plain)
|
||||||
.help("About this pedal")
|
.help("About this pedal")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// Grid of the effect knobs, in rows of up to `knobColumnCount`.
|
/// Grid of the effect knobs, in rows of up to `knobColumnCount`.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user