HelpModel

final class HelpModel

The model for HelpView

  • The page to show

    Declaration

    Swift

    var page: Page? = .kodioHelp
  • The content of the page

    Declaration

    Swift

    var text: String = ""
  • The pages for the Help View

    See more

    Declaration

    Swift

    enum Page: String, CaseIterable
  • Get the content of a help page

    Declaration

    Swift

    static func getPage(help: HelpModel.Page) -> String

    Parameters

    help

    The page

    Return Value

    The content of the page

  • Convert a ‘docc’ link to a SwiftUI View with a button

    Declaration

    Swift

    func doccLink(text: String) -> some View

    Parameters

    text

    The text containing the link

    Return Value

    A SwiftUI View