GuideViewController

@MainActor
open class GuideViewController : UIViewController

引导控制器

KSGuideController

  • 样式属性定制

    Declaration

    Swift

    @MainActor
    open var bgAlpha: CGFloat
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var bgColor: UIColor?
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var spacing: CGFloat
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var padding: CGFloat
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var maskCornerRadius: CGFloat
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var maskInsets: UIEdgeInsets
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var maskFillColor: UIColor
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var font: UIFont
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var textColor: UIColor
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var arrowColor: UIColor?
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var arrowImage: UIImage?
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var animationDuration: Double
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var animatedMask: Bool
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var animatedArrow: Bool
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var animatedContent: Bool
  • Undocumented

    Declaration

    Swift

    @MainActor
    open var statusBarHidden: Bool
  • 设置或获取当前索引

    Declaration

    Swift

    @MainActor
    open var currentIndex: Int { get set }
  • 索引将要改变句柄

    Declaration

    Swift

    @MainActor
    open var indexWillChangeBlock: ((_ index: Int, _ item: GuideViewItem) -> Void)?
  • 索引已经改变句柄

    Declaration

    Swift

    @MainActor
    open var indexDidChangeBlock: ((_ index: Int, _ item: GuideViewItem) -> Void)?
  • 指定单个引导项初始化,key为nil时忽略缓存

    Declaration

    Swift

    @MainActor
    public convenience init(item: GuideViewItem, key: String? = nil)
  • 指定引导项并初始化,key为nil时忽略缓存

    Declaration

    Swift

    @MainActor
    public init(items: [GuideViewItem], key: String? = nil)
  • 显示引导,如果指定了key且已展示过,则不再显示

    Declaration

    Swift

    @MainActor
    open func show(from vc: UIViewController, completion: (() -> Void)? = nil)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func viewDidLoad()
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open var prefersStatusBarHidden: Bool { get }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func viewWillTransition(to size: CGSize, with coordinator: any UIViewControllerTransitionCoordinator)
  • Undocumented

    Declaration

    Swift

    @MainActor
    open func configViews()
  • Undocumented

    Declaration

    Swift

    @MainActor
    open func configMask()
  • Undocumented

    Declaration

    Swift

    @MainActor
    open func configViewFrames()
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?)