# In-App Libraries for Swift Playgrounds on iPad

**URL:** <https://forums.swift.org/t/in-app-libraries-for-swift-playgrounds-on-ipad/67241>\
**Category:** Community Showcase\
**Tags:** packagemanager, library, playgrounds\
**Created:** [September 12, 2023, 10:56am UTC](https://forums.swift.org/t/in-app-libraries-for-swift-playgrounds-on-ipad/67241 "2023-09-12T10:56:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toph42](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/toph42/32/7807_2.png) [@toph42](https://forums.swift.org/u/toph42)\
**Post date:** [September 12, 2023, 10:56am UTC](https://forums.swift.org/t/in-app-libraries-for-swift-playgrounds-on-ipad/67241/1 "2023-09-12T10:56:23Z")

</div>

Since the addition of App projects in **Swift Playgrounds 4** it’s been easy to use libraries in Swift packages hosted online in your Apps, but it hasn’t been easy or clear how to _create_ libraries for reuse using **Swift Playgrounds**. My Mac recently fell victim to a power surge, so my iPad is currently my only Swift development option and I found myself wanting to reuse code on multiple projects without having to update said code multiple times when I made improvements. I set about finding a way to do that.

I found the simplest way to accomplish the feat and thought that others would also like to know how. I’ve posted a repository on GitHub that is an example and its README.md file expounds on the process.

I realize this audience is likely more advanced than the demographic for **Swift Playgrounds** , but if it helps anyone I’m happy to have posted it.

[In-App Libraries for Swift Playgrounds](https://github.com/toph42/ExampleKit)
