Swiftpack.co - magesteve/SwiftSpellBook as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by magesteve.
magesteve/SwiftSpellBook 1.1.0
Swift Package of useful tools for Swift Development on any platform.
⭐️ 0
🕓 3 years ago
.package(url: "https://github.com/magesteve/SwiftSpellBook.git", from: "1.1.0")

SwiftSpellBook

Swift Xcode SPM MIT

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

Installation

Requirements

  • Swift 5
  • Xcode 11

Repository

https://github.com/magesteve/SwiftSpellBook

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.

License

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

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

Release 1.1.0
3 years ago

Release 1.1.0

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

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