Skip to content

fontno/BarcodeGenerator

Repository files navigation

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.

About

A SwiftUI Barcode Generator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages