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
Vasilis
2022-05-04 15:10:24 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5584e087e45e93530a87ef3f6d6f224b55205696
5584e087
1 parent
a43e0e97
minor change
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
26 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcshareddata/swiftpm/Package.resolved
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcshareddata/swiftpm/Package.resolved
View file @
5584e08
{
"object"
:
{
"pins"
:
[
{
"package"
:
"RSBarcodes_Swift"
,
"repositoryURL"
:
"https://github.com/yeahdongcn/RSBarcodes_Swift"
,
"state"
:
{
"branch"
:
null
,
"revision"
:
"86d8b1a1439e7edb19793d17732b15fd784a0a15"
,
"version"
:
"5.1.1"
}
"pins"
:
[
{
"identity"
:
"rsbarcodes_swift"
,
"kind"
:
"remoteSourceControl"
,
"location"
:
"https://github.com/yeahdongcn/RSBarcodes_Swift"
,
"state"
:
{
"revision"
:
"86d8b1a1439e7edb19793d17732b15fd784a0a15"
,
"version"
:
"5.1.1"
}
]
}
,
"version"
:
1
}
]
,
"version"
:
2
}
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
5584e08
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponBarcodeView.swift
View file @
5584e08
...
...
@@ -11,8 +11,8 @@ import Combine
import
Foundation
import
UIKit
// TODO: Uncomment for barcode
//
import RSBarcodes_Swift
//
import AVFoundation
import
RSBarcodes_Swift
import
AVFoundation
...
...
@@ -198,18 +198,18 @@ extension CouponBarcodeView {
// let isValid = RSUnifiedCodeValidator.shared.isValid(barcodeString, machineReadableCodeObjectType: AVMetadataObject.ObjectType.ean13.rawValue)
// TODO: Uncomment for barcode
// 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.1)) {
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.1
))
{
//
////
// VStack(alignment: .center) {
// Image(uiImage: barcodeImage)
// .resizable()
// .aspectRatio(contentMode: .fit)
// .frame(width: self.uiscreen.width * 0.8, height: self.uiscreen.height * 0.1)
// }
// .frame(maxWidth: .infinity)
// .padding(.top, self.uiscreen.height * 0.01)
// }
VStack
(
alignment
:
.
center
)
{
Image
(
uiImage
:
barcodeImage
)
.
resizable
()
.
aspectRatio
(
contentMode
:
.
fit
)
.
frame
(
width
:
self
.
uiscreen
.
width
*
0.8
,
height
:
self
.
uiscreen
.
height
*
0.1
)
}
.
frame
(
maxWidth
:
.
infinity
)
.
padding
(
.
top
,
self
.
uiscreen
.
height
*
0.01
)
}
Text
(
barcodeString
)
...
...
Please
register
or
login
to post a comment