Mac Swift

1 min read mac

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/mac-swift-playground.

Swift Playground

Swift playground for exploring the swift programming language

Playground Specific Functions

There are a set of functions that enable the code you write to interact with the plaground UI. For example, you can display a UIView live. The XCPlayground module provides these functions

XCPSetExecutionShouldContinueIndefinitely(continueIndefinitely:Bool)

Allows async code to run. For example, dispatch_* calls and networking.

XCPCaptureValue(identifier: String, value:AnyObject)

Displays the value in the view pane with the identifier as the title

XCPShowView(identifier: String, view: NSView)

Display the provided view in the view pane with the identifier as the title

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.