Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jiahan-wu/swiftui-code39
Browse files Browse the repository at this point in the history
  • Loading branch information
jiahan-wu committed Jun 8, 2024
2 parents d878ded + 56fbfa6 commit 760251b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ SwiftUI Code39 is a Swift package that provides an easy way to generate Code 39

## Installation

To use SwiftUI Code39 in your project, add the following line to your `Package.swift` file:
To use SwiftUI Code39 in your project:

```swift
dependencies: [
.package(url: "https://github.com/jiahan-wu/swiftui-code39.git", from: "1.0.0")
]
```
1. Xcode > File > Add Package Dependencies
2. Add `https://github.com/jiahan-wu/swiftui-code39.git`
3. Select "Up to Next Major Version" with "1.0.0"

Then, import the package in your Swift code:

Expand All @@ -20,7 +18,7 @@ import Code39

## Usage

To generate a Code 39 barcode, simply create an instance of `Code39View` and provide the desired content as a string:
To generate a Code 39 barcode, simply create a `Code39View` and provide the desired content as a string:

```swift
struct ContentView: View {
Expand Down

0 comments on commit 760251b

Please sign in to comment.