Skip to content

Xcode project for building apps derived from Shapes template from Swift Playgrounds for iPad

Notifications You must be signed in to change notification settings

dbystruev/xcode-shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xcode-shapes

Xcode project for building apps using Shapes template in Swift Playgrounds for iPad. You can design and test your app on iPad and migrate the code to Mac for enhances and App Store submission.

Shapes template output

Instructions

  1. In Swift Playgrounds for iPad, start new playgroundbook (by pressing "+") and select Shapes template.
  2. Create a new page or delete all code on one of the existing pages
  3. Copy the sample code from Shapes/Contents.swift to an empty page of open playground
  4. Design, test, and run your program as normal, all within Contents class. Add new functions to this class, and high level code into run() method of this class
  5. After you are done, you will need to copy the code from iPad to Mac. Please note that "Create PDF" feature in Swift Playgrounds creates an image-based file without text information, so it is impossible to copy and paste text from it. On Mac, open the xcode-shapes project (Shapes.xcodeproj) with Xcode. On iPad, select all code in Swift Playgrounds, copy it and paste:
    • if you have Universal Clipboard turned on — directly to Xcode for Mac into Shapes/Contents.swift file, replacing everything in it, OR
    • to some 3rd place, like GitHubGist, where you can access the code from your Mac
  6. If you added any images or other files into your code on iPad, you need to add the same files into Resources folder in xcode-shapes project (Shapes.xcodeproj) on Mac
  7. Try to build and run your app. If something does not work, try compiling the original code first.

Copyright notice

This work is based on the code derived from:

You can use this work freely if not prohibited by your local laws.

Timeline

  • Started by Denis Bystruev from learnSwift.ru on 13th of April 2017.
  • Updated to Xcode 9 and Swift 4 on 8th of December 2017.
  • Updated to Xcode 11 and Swift 5 on 12th of September 2019.

Feel free to contract me via e-mail in my GitHub profile.

About

Xcode project for building apps derived from Shapes template from Swift Playgrounds for iPad

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages