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-29 11:38:14 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0999b26088ff2a38cfa2468556c487629a4ad783
0999b260
1 parent
cedab8fc
barcode v20
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
0999b26
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeView.swift
View file @
0999b26
...
...
@@ -230,17 +230,17 @@ extension CouponBarcodeView {
// gen.fillColor = UIColor.white
// gen.strokeColor = UIColor.black
if
let
barcodeImage
=
RSUnifiedCodeGenerator
.
shared
.
generateCode
(
barcodeString
,
machineReadableCodeObjectType
:
AVMetadataObject
.
ObjectType
.
ean13
.
rawValue
,
targetSize
:
CGSize
(
width
:
300
,
height
:
300
))
{
if
let
barcodeImage
=
RSUnifiedCodeGenerator
.
shared
.
generateCode
(
barcodeString
,
machineReadableCodeObjectType
:
AVMetadataObject
.
ObjectType
.
ean13
.
rawValue
,
targetSize
:
CGSize
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.05
))
{
//
VStack(alignment: .center) {
// Image(uiImage: i
mage)
//
.resizable()
//
.aspectRatio(contentMode: .fit)
//
.frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.05)
//
//
}
//
.frame(maxWidth: .infinity)
//
.padding(.top, self.uiscreen.height * 0.01)
VStack
(
alignment
:
.
center
)
{
Image
(
uiImage
:
barcodeI
mage
)
.
resizable
()
.
aspectRatio
(
contentMode
:
.
fit
)
.
frame
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.05
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
top
,
self
.
uiscreen
.
height
*
0.01
)
// Image(uiImage: UIImage(named: "ic_back")!)
// .renderingMode(.original)
...
...
@@ -249,11 +249,11 @@ extension CouponBarcodeView {
// .frame(width: 300, height: 300)
Image
(
uiImage
:
barcodeImage
)
.
renderingMode
(
.
original
)
.
resizable
()
.
aspectRatio
(
contentMode
:
.
fit
)
.
frame
(
width
:
300
,
height
:
300
)
//
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)
}
// }
...
...
Please
register
or
login
to post a comment