Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-04-27 11:25:43 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a809440b8a1e17949cc05783f7c98669b7d3b4c
7a809440
1 parent
0126f8aa
barcode lib v11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7a80944
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeView.swift
View file @
7a80944
...
...
@@ -161,12 +161,12 @@ extension CouponBarcodeView {
// let isValid = RSUnifiedCodeValidator.shared.isValid("1234567891234", machineReadableCodeObjectType: AVMetadataObject.ObjectType.ean13.rawValue)
if
let
gen
=
RSUnifiedCodeGenerator
.
shared
{
//
if let gen = RSUnifiedCodeGenerator.shared {
// gen.fillColor = UIColor.white
// gen.strokeColor = UIColor.black
if
let
image
=
gen
.
generateCode
(
"1234567891234"
,
machineReadableCodeObjectType
:
AVMetadataObject
.
ObjectType
.
ean13
.
rawValue
,
targetSize
:
CGSize
(
width
:
300
,
height
:
300
))
{
if
let
barcodeImage
=
RSUnifiedCodeGenerator
.
shared
.
generateCode
(
"1234567891234"
,
machineReadableCodeObjectType
:
AVMetadataObject
.
ObjectType
.
ean13
.
rawValue
,
targetSize
:
CGSize
(
width
:
300
,
height
:
300
))
{
// VStack(alignment: .center) {
// Image(uiImage: image)
...
...
@@ -178,12 +178,14 @@ extension CouponBarcodeView {
// .frame(maxWidth: .infinity)
// .padding(.top, self.uiscreen.height * 0.01)
Image
(
uiImage
:
image
)
// .resizable()
// .aspectRatio(contentMode: .fit)
Image
(
uiImage
:
barcodeImage
)
.
renderingMode
(
.
original
)
.
resizable
()
.
aspectRatio
(
contentMode
:
.
fit
)
.
frame
(
width
:
300
,
height
:
300
)
// .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.05)
}
}
//
}
// generateBarcode(from: "1234567891234")
// ?
...
...
Please
register
or
login
to post a comment