Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 9feda7e

Browse files
committed
updating to match protocol evolution
1 parent dae8ef0 commit 9feda7e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SwiftUIViz/HorizontalAxisView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import SwiftUI
1010
import SwiftViz
1111

12-
public struct HorizontalAxisView<ScaleType: Scale>: View where ScaleType.InputType == Double, ScaleType.OutputType == Float {
12+
public struct HorizontalAxisView<ScaleType: TickScale>: View where ScaleType.InputType == Double, ScaleType.OutputType == Float {
1313
let leftInset: CGFloat
1414
let rightInset: CGFloat
1515
var scale: ScaleType

Sources/SwiftUIViz/HorizontalBandView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import SwiftUI
1010
import SwiftViz
1111

12-
public struct HorizontalBandView<ScaleType: Scale>: View where ScaleType.InputType == Double, ScaleType.OutputType == Float {
12+
public struct HorizontalBandView<ScaleType: TickScale>: View where ScaleType.InputType == Double, ScaleType.OutputType == Float {
1313
var scale: ScaleType
1414

1515
init(scale: ScaleType) {

Sources/SwiftUIViz/VerticalAxisView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import SwiftUI
1010
import SwiftViz
1111

12-
public struct VerticalAxisView<ScaleType: Scale>: View where ScaleType.InputType == Double, ScaleType.OutputType == Float {
12+
public struct VerticalAxisView<ScaleType: TickScale>: View where ScaleType.InputType == Double, ScaleType.OutputType == Float {
1313
let topInset: CGFloat
1414
let bottomInset: CGFloat
1515
let leftOffset: CGFloat
@@ -23,7 +23,7 @@ public struct VerticalAxisView<ScaleType: Scale>: View where ScaleType.InputType
2323
leftOffset = 30
2424
tickLength = 5
2525
}
26-
26+
2727
func tickList<InputType, OutputType>(geometry: GeometryProxy) -> [Tick<InputType, OutputType>] where ScaleType.InputType == InputType, ScaleType.OutputType == OutputType {
2828
// protect against Preview sending in stupid values
2929
// of geometry that can't be made into a reasonable range
@@ -66,7 +66,7 @@ struct VerticalAxisView_Previews: PreviewProvider {
6666
VerticalAxisView(scale: LinearScale.create(0 ... 1.0))
6767
.frame(width: 100, height: 400, alignment: .center)
6868

69-
VerticalAxisView(scale: LogScale.DoubleScale(from: 0, to: 10, transform: .none))
69+
VerticalAxisView(scale: LogScale.DoubleScale(from: 0, to: 10, transform: .none))
7070
.frame(width: 100, height: 400, alignment: .center)
7171
}
7272
}

0 commit comments

Comments
 (0)