Skip to content

Commit 0a55979

Browse files
committed
Public init
1 parent c600e7f commit 0a55979

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Sources/Fretboard/FretView.swift

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@
88
import SwiftUI
99

1010
public struct FretView: View {
11-
public let fingers: [Int]
12-
public let strings: [Int]
13-
public let barres: [Int]
11+
let fingers: [Int]
12+
let strings: [Int]
13+
let barres: [Int]
14+
15+
public init(fingers: [Int], strings: [Int], barres: [Int]) {
16+
self.fingers = fingers
17+
self.strings = strings
18+
self.barres = barres
19+
}
1420

1521
public var body: some View {
1622
GeometryReader { proxy in

0 commit comments

Comments
 (0)