make sure your uiView parameter is of type UISlider:
uiView
UISlider
func updateUIView( _ uiView: UISlider, context: Context)