CocoaPods trunk is moving to be read-only. Read more on the blog, there are 17 months to go.

DevModeKit 0.3.3

DevModeKit 0.3.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2017
SwiftSwift Version 3.1
SPMSupports SPM

Maintained by Matt Wakefield, John Bailey.



  • By
  • Matthew Wakefield

A series of helpful Swift extensions and utilities.

Extensions

A series of helpful extensions.

Date Extensions

Lots of additional Date functionality.

Image Extensions

Ever wish you could more easily create a UIImage from a URL object? Now you can!

UIImage.load("http://cdn.devmode.com/assets/ben_bio-818b58fc249a9d19ba5a5ce436dd54e1.jpg") { img in
  ...
}

Also, your UIImage will be cached locally after first use.

URL Extensions

Easily parse a URL query string into a Dictionary of key/value pairs.

let url = URL(string: "http://www.devmode.com?param1=value1&param2=value2&param3=value3")
url?.parsedQuery["param1"] // "value1"
url?.parsedQuery["param2"] // "value2"
url?.parsedQuery["param3"] // "value3"

Utilities

A series of helpful utilities.

AsynchronousOperation

A subclass of Operation for asynchronous tasks.

loadingQueue = OperationQueue()
loadingQueue.maxConcurrentOperationCount = 2
loadingQueue.addOperation(AsynchronousOperation { done in
  ...
})

Defaults

Easily retrieve and store persistent device-specific default values via subscript.

Defaults.standard["KEY"] = "VALUE"
Defaults.standard["KEY"] as? String // "VALUE"

Logging

Ever wish you could use traditional logging mechanisms in Swift? Now you can!

Logger.log("Test", .warning, "Hello World!")
Logger.warning("Test", "Hello World!")

Property Lists

Ever wish you could interact with nested values from property files more easily? Now you can!

// Set a persistent environment to switch between property lists.
PropertyList.environment = .production

// Specify the `Bundle` to use to locate the property list.
PropertyList.bundle = Bundle(for: type(of: self))

// Use subscripts and dot-syntax to retrieve values from property list files.
PropertyList.main["Group.SubOne.Key"].string // <nested-value-from-property-list>