File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,11 @@ SwiftUI Code39 is a Swift package that provides an easy way to generate Code 39
4
4
5
5
## Installation
6
6
7
- To use SwiftUI Code39 in your project, add the following line to your ` Package.swift ` file :
7
+ To use SwiftUI Code39 in your project:
8
8
9
- ``` swift
10
- dependencies: [
11
- .package (url : " https://github.com/jiahan-wu/swiftui-code39.git" , from : " 1.0.0" )
12
- ]
13
- ```
9
+ 1 . Xcode > File > Add Package Dependencies
10
+ 2 . Add ` https://github.com/jiahan-wu/swiftui-code39.git `
11
+ 3 . Select "Up to Next Major Version" with "1.0.0"
14
12
15
13
Then, import the package in your Swift code:
16
14
@@ -20,7 +18,7 @@ import Code39
20
18
21
19
## Usage
22
20
23
- To generate a Code 39 barcode, simply create an instance of ` Code39View ` and provide the desired content as a string:
21
+ To generate a Code 39 barcode, simply create a ` Code39View ` and provide the desired content as a string:
24
22
25
23
``` swift
26
24
struct ContentView : View {
You can’t perform that action at this time.
0 commit comments