Top "Swift-playground" questions

Swift Playgrounds are interactive design environments that evaluate code as you write it.

Add a method to Card that creates a full deck of cards, with one card of each combination of rank and suit

So I have been doing the experiments that are in the Apple Swift Book. I have been able to do …

swift swift-playground
Import my own Swift class into Playground

I have seen several different posts on this subject, but none seem to solve what I think is a basic …

ios swift swift-playground
Displaying a Map with MapKit in a Swift playground for a Quick Look?

Good to see a tag for swift-playground - love to see this continue. I've been tinkering with Swift and am …

swift mapkit swift-playground
Swift Playground - Files are not readable

Files are not readable in Swift Playground. How to make files readable? Same code runs well on Xcode terminal app, …

xcode swift xcode6 foundation swift-playground
How can I use Swift 2.3 in XCode 8 Playgrounds?

I have my playground project written in Swift 2.2 and I want take advantage of timeline visuals and try new debug …

swift swift-playground xcode8
My Swift 4 UIScrollView with autolayout constraints is not scrolling

I have created a small demo playground to get this working before adding the view to my app. I have …

ios swift uiscrollview swift-playground programmatically-created
Playground execution terminated because the playground process exited unexpectedly

I want to use a playground in Xcode 6.0.1. So File -> New -> Playground I get immediately the …

ios xcode swift swift-playground
Swift: Overriding didSet results in a recursion

When overriding the didSet observer of a property results in recursion, why? class TwiceInt { var value:Int = 0 { didSet { value *= 2 } } } class …

swift recursion swift-playground didset
Error running playground. Unable to find suitable target device. (iOS Swift)

I created a new project in XCode. File > New > Playground (option+shift+cmd+N) I restarted my XCode …

xcode swift xcode6 swift-playground
How to use GLKit within the Xcode OS X Swift Playground?

I'm trying to use GLKit within the Xcode 6 OS X Swift Playground but the import GLKit doesn't seem enough to …

xcode glkit swift swift-playground