Skip to content

tsuzukihashi/EDR_Swift

Repository files navigation

EDR_Swift

EDR stands for Extended Dynamic Range. It is one of Apple's HDR technologies called Extended Dynamic Range

Note! EDR is for iOS 16 and above.

QR Barcode

Usage

Add Package Dependencies

スクリーンショット 2023-08-19 0 34 25

EDRQRCodeView

import SwiftUI
/** import */
import EDR_Swift

struct ContentView: View {
  var body: some View {
    /** Set
      - QRContents
      - Size
     */
    EDRQRCodeView(
      content: "https://bento.me/tsuzuki817",
      size: .init(width: 300, height: 300)
    )
    .frame(width: 300, height: 300)
  }
}

EDRBarcodeCodeView

import SwiftUI
/** import */
import EDR_Swift

struct ContentView: View {
  var body: some View {
    EDRBarcodeView(
      content: "https://bento.me/tsuzuki817",
      size: .init(width: 320, height: 100)
    )
    .frame(width: 320, height: 100)
  }
}

structure

‎iOSDC2023_LT ‎013

About

I want to use EDR features easily.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages