Swiftpack.co - yongfrank/FooPackage as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by yongfrank.
yongfrank/FooPackage 1.0.2
Swift Package Sample
⭐️ 0
🕓 4 weeks ago
.package(url: "https://github.com/yongfrank/FooPackage.git", from: "1.0.2")


FooPackage that stores data structures: Stack, Queue, Heap and so on

This is a test package for Swift Package Manager, to give folks something to experiment with when working with Xcode’s SPM integration.


import FooPackage

var stack = FooPackage.Stack<Int>()
stack.pushBack(number: 3)
guard let number = stack.pop() else { return }



To try it out in your project:

  1. Go to the File menu.
  2. Look in the Swift Packages submenu.
  3. Choose Add Package Dependency.
  4. For the URL enter https://github.com/yongfrank/FooPackage
  5. Leave the default rules alone, and click Next.
  6. Click Finish to complete the process.

Once that’s done, you should be able to add import FooPackage to one of your Swift files, then try out the example code that is included in the package: Stack.


I don’t think anything this trivial deserves a license: please use it however you want, with or without attribution, with or without changes from you, with or without distributing your changed code, and commercially or non-commercially.


Stars: 0
Last commit: 4 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics