mirror of
https://github.com/home-assistant/iOS.git
synced 2026-06-18 21:51:51 -05:00
21 lines
583 B
Swift
21 lines
583 B
Swift
import Foundation
|
|
import Shared
|
|
import SwiftUI
|
|
import UIKit
|
|
import WatchKit
|
|
|
|
struct VolumeView: WKInterfaceObjectRepresentable {
|
|
typealias WKInterfaceObjectType = WKInterfaceVolumeControl
|
|
|
|
func makeWKInterfaceObject(context: Self.Context) -> WKInterfaceVolumeControl {
|
|
let view = WKInterfaceVolumeControl(origin: .local)
|
|
view.setTintColor(UIColor(Color.haPrimary))
|
|
return view
|
|
}
|
|
|
|
func updateWKInterfaceObject(
|
|
_ wkInterfaceObject: WKInterfaceVolumeControl,
|
|
context: WKInterfaceObjectRepresentableContext<VolumeView>
|
|
) {}
|
|
}
|