Skip to content

Repository files navigation

ScanTextField

A SwiftUI wrapper around UIAction.captureTextFromCamera

Installation

Install via Swift Package Manager:

https://github.com/chFlorian/ScanTextField

Usage

The package contains a single UIViewRepresentable, that can be used anywhere in a SwiftUI View:

import ScanTextField
structContentView:View{@Statevartext=""varbody:someView{VStack{ScanTextField("Enter name", text: $text).padding(8).frame(height:30).background(Color(.lightGray).opacity(0.2)).cornerRadius(10).padding(.horizontal)}}}

About

A SwiftUI wrapper around `UIAction.captureTextFromCamera`

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages