UI Components
VGSLabel
VGSLabel configuration
Code example
cardNumberLabel.contentPath = "<CONTENT_PATH_NAME_1>"
expDateLabel.contentPath = "<CONTENT_PATH_NAME_2>"Code example
private func configureUI() {
let paddings = UIEdgeInsets.init(top: 8, left: 8, bottom: 8, right: 8)
let textColor = UIColor.white
let borderColor = UIColor.clear
let font = UIFont.systemFont(ofSize: 20)
let backgroundColor = UIColor.systemBlue
let cornerRadius: CGFloat = 0
let textAlignment = NSTextAlignment.left
let characterSpacing: CGFloat = 0.83
// Text color.
cardNumberLabel.textColor = textColor
// Paddings - should be non-negative!.
cardNumberLabel.paddings = paddings
// Border color.
cardNumberLabel.borderColor = borderColor
// Font.
cardNumberLabel.font = font
// Background color.
cardNumberLabel.backgroundColor = backgroundColor
// Corner radius.
cardNumberLabel.layer.cornerRadius = cornerRadius
// Text alignment.
cardNumberLabel.textAlignment = textAlignment
// Character spacing.
cardNumberLabel.characterSpacing = characterSpacing
}Placeholder
Data formatting
Handle changes in VGSLabel
Code example
Secure text
Copy text to clipboard
Clear text
VGSLabel Accessibility attributes
VGSPDFView
VGSPDFView configuration
Code example
Reveal PDF with VGSShowSDK
Handle changes in VGSPDFView
Code example
VGSImageView
Declaration
VGSImageView Functional attributes
VGSImageView Functional functions
VGSImageView configuration
Handle changes in VGSImageView
Code example
Reveal image with VGSShowSDK
Last updated

