Skip to content

Commit

Permalink
Merge pull request #14 from tomosaaan/fix/margin-handle
Browse files Browse the repository at this point in the history
fix: Stack usage for margin
  • Loading branch information
tomosaaan authored Dec 13, 2024
2 parents 40fd4f0 + 59edac0 commit e4fb9fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/GraphRangeSlider/GraphRangeSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct GraphRangeSlider<Data, ID>: View where Data: RandomAccessCollectio
@Environment(\.isHiddenChart) private var isHiddenChart: Bool

public var body: some View {
VStack(spacing: margin) {
ZStack(alignment: .bottom) {
if !isHiddenChart {
Chart(data, id: id) { data in
BarMark(
Expand All @@ -50,6 +50,7 @@ public struct GraphRangeSlider<Data, ID>: View where Data: RandomAccessCollectio
Status.inactive: inactiveColor
])
.padding(.horizontal, toggleRadius * 2)
.padding(.bottom, margin + toggleRadius + sliderBarHeight / 2)
}

if !positions.isEmpty {
Expand Down

0 comments on commit e4fb9fe

Please sign in to comment.