Try Before You Buy: Trying Out Swift Packages With Xcode Playgrounds - try! Swift World, Online, June 2020

Try Before You Buy: Trying Out Swift Packages With Xcode Playgrounds - try! Swift World, Online, June 2020

A lightning talk about the cool new stuff you can do with Xcode Playgrounds to document either swift packages directly or use those packages within an Xcode project.

Simple Example:
https://github.com/designatednerd/MehHTTP

Complicated Example:
https://github.com/apollographql/apollo-ios/tree/betas/xcode-12

C4861b1dfdf3bbb21faec4a1acdf183d?s=128

Ellen Shapiro

June 26, 2020
Tweet

Transcript

  1. TRY BEFORE YOU BUY TRYING OUT THIRD PARTY PACKAGES WITH

    XCODE PLAYGROUNDS TRY! SWIFT WORLD | THE INTERNETS | JUNE 2020 ELLEN SHAPIRO | @DESIGNATEDNERD | APOLLOGRAPHQL.COM
  2. None
  3. EXPLORE PACKAGES AND PROJECTS WITH XCODE PLAYGROUNDS HTTPS://DEVELOPER.APPLE.COM/VIDEOS/PLAY/

  4. IN A SWIFT PACKAGE

  5. https://github.com/designatednerd/MehHTTP

  6. None
  7. ADD A PLAYGROUNDS FOLDER

  8. None
  9. ADD A PLAYGROUND TO THE FOLDER*

  10. ADD A PLAYGROUND TO THE FOLDER* * Easier said than

    done
  11. None
  12. !

  13. ! FB7800216

  14. CREATE THE PLAYGROUND SEPARATELY

  15. None
  16. PERSONAL EXPERIENCE: MACOS WORKS A LOT BETTER THAN IOS

  17. !

  18. None
  19. (REMEMBER TO CLOSE THE PLAYGROUND AFTER YOU CREATE IT)

  20. None
  21. None
  22. None
  23. https://github.com/designatednerd/MehHTTP

  24. None
  25. None
  26. https://github.com/apollographql/apollo-ios

  27. ! GENERATED CODE

  28. IN AN XCODE PROJECT

  29. ! FB7800216

  30. CREATE THE PLAYGROUND OUTSIDE YOUR PROJECT AND DRAG IT IN

  31. None
  32. None
  33. None
  34. None
  35. None
  36. None
  37. THANK YOU! https://github.com/apollographql/apollo-ios branch: betas/xcode-12