vds_ios/VDS/Components/Tooltip/TooltipModel.swift
Matt Bruce b5b5c0d9e4 refactored accessibility elements
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2024-05-03 15:27:00 -05:00

37 lines
1.2 KiB
Swift

//
// TooltipModel.swift
// VDS
//
// Created by Matt Bruce on 9/13/23.
//
import Foundation
import UIKit
extension Tooltip {
/// Model used to represent the tooltip.
public struct TooltipModel {
/// Current Surface and this is used to pass down to child objects that implement Surfacable
public var closeButtonText: String
public var title: String?
public var content: String?
public var contentView: UIView?
public var accessibleText: String?
public var contentViewAlignment: UIStackView.Alignment?
public init(closeButtonText: String = "Close",
title: String? = nil,
content: String? = nil,
contentView: UIView? = nil,
accessibleText: String? = "Tooltip",
contentViewAlignment: UIStackView.Alignment = .leading) {
self.closeButtonText = closeButtonText
self.title = title
self.content = content
self.contentView = contentView
self.accessibleText = accessibleText
self.contentViewAlignment = contentViewAlignment
}
}
}