iOS/Sources/Extensions/Watch/Assist/Views/VolumeView.swift

21 lines
587 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(Asset.Colors.haPrimary.color)
return view
}
func updateWKInterfaceObject(
_ wkInterfaceObject: WKInterfaceVolumeControl,
context: WKInterfaceObjectRepresentableContext<VolumeView>
) {}
}