GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Coledunsby/CDCodabarView: Codabar Barcode Generator for iOS

BranchesTags
Open more actions menu

Latest commit

 

History

52 Commits
52 Commits

Folders and files

NameName
Last commit message
Last commit date
.swiftpm/xcode/package.xcworkspace
.swiftpm/xcode/package.xcworkspace
 
 
CDCodabarViewExample/CDCodabarViewExample
CDCodabarViewExample/CDCodabarViewExample
 
 
Images
Images
 
 
Sources/CDCodabarView
Sources/CDCodabarView
 
 
Tests/CDCodabarViewTests
Tests/CDCodabarViewTests
 
 
.gitignore
.gitignore
 
 
CDCodabarView.podspec
CDCodabarView.podspec
 
 
LICENSE
LICENSE
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 

Repository files navigation

CDCodabarView

Version License Platform Language

What is it?

CDCodabarView is a Codabar barcode generator for iOS.

It is written in Swift 5 and uses IBDesignable, IBInspectable and Core Graphics.

Installation

Swift Package Manager (Recommended)

Add https://github.com/Coledunsby/CDCodabarView as a package dependency.

CocoaPods

CDCodabarView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CDCodabarView'

Manual

Copy CDCodabarView.swift and CDCodabarEncoder.swift into your project.

Usage (Storyboards)

  1. Drag a UIView into your storyboard.
  2. Change the class of the UIView to CDCodabarView.
  3. Customize your barcode using the inspector.

alt tag

Usage (Programmatically)

  1. Import the module:

    import CDCodabarView
    
  2. Initialize an instance of CDCodabarView using the constructor:

    let codabarView = CDCodabarView()
    codabarView.frame = CGRect(x: 0, y: 0, width: 200, height: 100)
    codabarView.code = "A12345B"
    codabarView.backgroundColor = .white
    
  3. Customize the barcode:

    codabarView.barColor = .blue
    codabarView.textColor = .red
    codabarView.padding = 5
    codabarView.hideCode = false
    codabarView.font = UIFont(name: "AvenirNext-Regular", size: 15.0)!
    
  4. Add the barcode to your view:

    view.addSubview(codabarView)
    

See the example project for more usage examples.

Author

Cole Dunsby, [email protected]

License

CDCodabarView is available under the MIT license. See the LICENSE file for more info.

About

Codabar Barcode Generator for iOS

Resources

Readme
MIT license
Activity

Stars

18 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.