CodeHelper
public final class CodeHelper
Generate code images
Date
15/09/2019Version
1.5.0-
Create a code image.
Important
On iOS 14, the generated image cannot be applied to an
UIImageViewwithin aUIScrollView, whosecontentModeis.scaleAspectFitor.scaleAspectFill.Declaration
Swift
public func createCode(_ code: String, as type: CodeType, with size: CGSize) -> UIImage?Parameters
codeThe code.
typeThe code type.
sizeThe code size.
-
The initializor
Declaration
Swift
public init()
CodeHelper Class Reference