Swiftpack.co -  Package - magesteve/SwiftSpellBook
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Swift Package of useful tools for Swift Development on any platform.
.package(url: "https://github.com/magesteve/SwiftSpellBook.git", from: "1.1.0")


Swift Xcode SPM MIT

Swift Package of useful tools for Swift Development on any platform.



  • Swift 5
  • Xcode 11



Refer to code documentation for explanation for specific calls.

Closure Typealiases Magic

Typealiases for Closures.

For example, DataClosure is a typealias for a Closure that has no results, but it passed a Data.

String Extensions Magic

Extensions Function calls for String type.

For example, isNotEmpty() is a computed variable that returns TRUE if string has contents.

Array Extensions Magic

Extensions Function calls for Dictionary type.

For example, remove(item:) remove specific item from Array, regardless of location.

Codable Extension Magic

New Extensions to Codable Protocols.

For example, spellWriteJSONData for converting Codable element into JSON data.

SwiftUIUpdateableProtocol Magic

Protocol for UI element to signal that they should update themselves.

For example, a NSViewController sublass might signal any views it contains that they need to be updated (assuming the views also supports this protocol).

UserDefault Magic

Static function for reading/writing/deleting various types to/from User Defaults.

Demo App

Sample code using this SpellBook can be found in the open-source Cocoa App CocoaGrimoire. Other SpellBooks by the author are also demonstrated there.


SwiftSpellBook is available as open source under the terms of the MIT License.


Stars: 0
Last commit: 2 weeks ago

Release Notes

Release 1.1.0
2 weeks ago

Release 1.1.0

Renaming of calls, addition of Codable/Encodable Spells & HexString function.

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