Swiftpack.co -  globulus/swiftui-digital-signature as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
globulus/swiftui-digital-signature
Digital signature component for SwiftUI.
.package(url: "https://github.com/globulus/swiftui-digital-signature.git", from: "0.1.0")

SwiftUIDigitalSignature

Plug'n' play Digital Signatures in SwiftUI.

Features

  • Freeform signature drawing.
  • Selecting signature image.
  • Typing signature in oblique font.
  • Choose signature color.
  • Choose signature font.
  • Callback produces UIImage that you can save/use.
  • iOS 13/14 compatible.

Preview

Installation

This component is distributed as a Swift package.

Sample usage

struct SignatureViewTest: View {
  @State private var image: UIImage? = nil
    
  var body: some View {
    NavigationView {
      VStack {
        NavigationLink("GO", destination: SignatureView(onSave: { image in
          self.image = image
        }, onCancel: {
                
        }))
        if image != nil {
            Image(uiImage: image!)
        }
      }
    }
  }
}

GitHub

link
Stars: 2
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API