Top "Swift-playground" questions

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

Class 'ViewController' has no initializers in swift

Getting the complaint from the compiler when I am doing this class ViewController: UIViewController { var delegate : AppDelegate override func viewDidLoad() { …

swift xcode6 swift-playground
How to iterate for loop in reverse order in swift?

When I use the for loop in Playground, everything worked fine, until I changed the first parameter of for loop …

ios swift swift-playground
How to print to console using swift playground?

I have been following the Apple Guide for their new language swift, but I don't understand why the bar on …

xcode6 swift swift-playground
How do I make an UIImage/-View with rounded corners CGRect (Swift)

How do I make a UIImageView with rounded corners on a Swift iOS Playground? Inside it needs to be filled …

uiimageview swift rounded-corners swift-playground
Swift playgrounds with UIImage

I am working with Xcode 6, and I'm trying to recreate the code demoed during session 401 "What's new in Xcode 6". I've …

ios uiimage swift xcode6 swift-playground
error: module file's minimum deployment target is ios8.3 v8.3

All attempts to import a dynamic framework in an Xcode playground yield the following error: error: module file's minimum deployment …

ios xcode swift xcode6 swift-playground
iOS Playground doesn't show UI preview

I've created a simple playground with XCode 7.1 and I've typed this simple code: import UIKit import XCPlayground var str = "Hello, …

ios swift xcode uikit swift-playground
How to import own classes from your own project into a Playground

Assume a setup like this: You have an Xcode 6 project, where you've implemented your own classes (say MyView and MyViewController) …

ios swift swift-playground
Playground is not showing result on right bar

I waited long time but my playground project is not showing result on right side bar I am using right …

swift swift-playground ios12
Does swift playground support UIKit?

I tried to create a UILabel in playground but failed. Does playground only support OS X development for now?

uikit swift swift-playground