Group Group Group Group Group Group Group Group Group

Your First iOS and SwiftUI App · Type Inference | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4919757-your-first-ios-and-swiftui-app/lessons/28

Hey there,

Working my way through this excellent course, I’m a bit stuck on the following, with using the slider values :
Coming from AppKit, I was used to the « sliderValueChanged » method in which we could just code what to do when the slider was moved. For example, simply print out to the console its value !

I’m trying to print the slider’s value in the console, but I can’t seem to be able to do this. Where should I place the
print(“the slider value is : (self.sliderValue)”) Code ?

I am able to display the slider’s value in a text, dynamically. I’m just wondering if I can print to the console.

Thanks