We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 760251b commit 3d49849Copy full SHA for 3d49849
Sources/Code39/Code39View.swift
@@ -17,7 +17,7 @@ public struct Code39View: View {
17
18
public var body: some View {
19
Canvas { context, size in
20
- let intercharacterGapCount = barcode.count % 9
+ let intercharacterGapCount = (barcode.count % 9) - 1
21
let narrowBarWidth = size.width / CGFloat(((((barcode.count - intercharacterGapCount) / 9) * 15) + intercharacterGapCount))
22
var currentX: CGFloat = 0
23
for (index, barWidth) in barcode.enumerated() {
0 commit comments