Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliessolved.tooltip
Replied In
Using print()
In side of the top level of Views only certain calls are allowed.I was able to get print to work inside an action closure:From InterfacingWithUIKit / HikeDetail.swift... ForEach(buttons.identified(by: \.0)) { value in Button(action: { print("action "+value.0) self.dataToShow = value.1 }) { Text(verbatim: value.0) .font(.system(size: 15)) .color(value.1 == self.dataToShow ? Color.gray : Color.accentColor) .animation(nil) } }...-jht