Sha256: 9f1fc644e98405193ab946a49e4aabf52206de105c4ca1abc5574b1a2e74cb16

Contents?: true

Size: 237 Bytes

Versions: 5

Compression:

Stored size: 237 Bytes

Contents

import UIKit

public var str = "Hello, playground"

public func sharedFunc() {
  print("This should be accessible to all pages.")
}

//// Page 1

str = "Yo, it's page 1."
sharedFunc()

//// Page 2

sharedFunc()
str = "Page 2 awww yeah."

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
playgroundbook-0.6.0 spec/fixtures/test_chapter.playground/Contents.swift
playgroundbook-0.4.0 spec/fixtures/test_chapter.playground/Contents.swift
playgroundbook-0.3.0 spec/fixtures/test_chapter.playground/Contents.swift
playgroundbook-0.2.1 spec/fixtures/test_chapter.playground/Contents.swift
playgroundbook-0.2.0 spec/fixtures/test_chapter.playground/Contents.swift