Skip to content

Commit

Permalink
fixed project struct and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneKlyuenkov committed Sep 30, 2022
1 parent f3a7bdb commit cb86ea5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GS1BarcodeParser.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion GS1BarcodeParser_Framework.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
6B6FC10428C9EE0D00C7F760 /* README.md */,
6BD6F08C28CB30B900E5E7EB /* Shakuro.GS1BarcodeParser.podspec */,
6BB6A4B928D4A9760006D7D1 /* .swiftlint.yml */,
6B6FC11428C9F0B400C7F760 /* Source */,
6B6FC0D728C9E8D900C7F760 /* GS1BarcodeParser_Framework */,
5042595121338FAB4DAB60CF /* Pods */,
6B6FC0D628C9E8D900C7F760 /* Products */,
6B6FC11428C9F0B400C7F760 /* Source */,
);
sourceTree = "<group>";
};
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
- [Usage](#usage)
- [License](#license)

A `GS1BarcodeParser` provides parsing of GS1 Barcodes.
Library also provides general purpose validator for barcode's content.

## Requirements

- iOS 11.0+
Expand Down Expand Up @@ -39,6 +42,19 @@ If you prefer not to use CocoaPods, you can integrate Shakuro.GS1BarcodeParser s

## Usage

### Parser

let barcodeParser = GS1BarcodeParser()
barcodeParser.validation = .none // .soft, .hard
var barcodeElements: [GS1Barcode.Element] = []

let barcode: String = "8017123456789012345678\u{1D}8018123456789012345678\u{1D}80191234567890"
do {
barcodeElements = try barcodeParser.parse(string: barcode).elements
} catch let error {
// handle error
}

Have a look at the [GS1BarcodeParser_Example](https://github.com/shakurocom/GS1BarcodeParser/tree/master/GS1BarcodeParser_Example)

## License
Expand Down

0 comments on commit cb86ea5

Please sign in to comment.