KodiSettingView

public struct KodiSettingView : View

SwiftUI View for a KodiSetting

  • It needs the KodiConnector in the environment
  • For tvOS, the View must be in a NavigationStack
  • init: we don’t get it for free

    Declaration

    Swift

    public init(setting: Setting.Details.KodiSetting)
  • The body of the View

    Declaration

    Swift

    public var body: some View { get }

View a specific setting by its ID

  • ViewBuilder for a specific setting by its ID

    Declaration

    Swift

    @ViewBuilder
    public static func setting(for setting: Setting.Details.KodiSetting.ID) -> some View

    Parameters

    setting

    The ID

    Return Value

    A SwiftUI View with the setting