Skip to content

Latest commit

 

History

History
74 lines (51 loc) · 1.12 KB

README.md

File metadata and controls

74 lines (51 loc) · 1.12 KB

Barcode Generator

Swift package to easily generate barcodes in your SwiftUI projects

Barcode Generators

  • Code 128 Barcode
    • example image
  • PDF417 Barcode
    • example image
  • Aztec Barcode
    • example image

Usage

Code 128 Barcode

import BarcodeGenerator

struct ContentView: View {
    var body: some View {
        Barcode128View(input: "12345678")
    }
}

PDF417 Barcode

import BarcodeGenerator

struct ContentView: View {
    var body: some View {
        BarcodePDF417View(input: "12345678")
    }
}

Aztec Barcode

import BarcodeGenerator

struct ContentView: View {
    var body: some View {
        AztecBarcodeView(input: "12345678")
    }
}

Required parameters - init

  • input - The String message that is encoded in the Barcode

Requirements

  • iOS 16.0+

Installation

dependencies: [
    .package(url: "https://github.com/fontno/BarcodeGenerator.git")
]

Hire Me

I am available to work on Swift projects.

Contact me on github to talk.