How to draw UIs (Rectangle, Buttons, Views, etc) and view the results in real-time, as shown here: https://devimages.apple.com.edgekey.net/swift/images/swift-screenshot.jpg ? All I can see is the Console Output, but I can't find the option to show the visual display (Balloons) and the chart.
A computer is a thing you use to write apps. If you're an adult who wants to learn to code, don't let the kid-friendly nature of Swift Playgrounds dissuade you. It quickly becomes sophisticated enough to make it a worthwhile and satisfying way to learn about core programming concepts.
To open Playground on Xcode, navigate to File in the menu and click on New > Playground... To test our square function, we will choose the Blank template. Name your Playground file, then click on Create.
Charts appear in the Assistant editor when you have something like a for
loop, or for anything where you press the quick look or circle/plus buttons when mousing over the results area. See Viewing Results of an Executed Statement in Playground Help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With