Nicholas Maccharoli

6pods

AttributedLib

A Modern interface for attributed strings.

Make working with attributed strings simple and safe. This is a light-weight third party alternative to the existing inconvinient and error prone programming interface to NSAttributedString.

License: MIT

  • Swift

Default

Modern interface to UserDefaults + Codable support please refer to README.md for usage details.

License: MIT

  • Swift

exitpath

A Simple way to manage actions for clicked links and URLs.

License: MIT

  • Swift

NMLRUCache

NMLRUCache Build Status

In Memory LRU Cache Implementation for iOS and OS X.

Requirements

  • iOS 5.0+
  • ARC

Features

  • Threadsafe and optimized for use with Grand Central Dispatch.
  • Completely In Memory Cache that deletes least recently used elements.

Installation

Using CocoaPods

  • If you are using CocoaPods Add pod 'NMLRUCache' to the Podfile in your project's root and run pod install

Copy & Paste Method

  • Copy the folder NMLRUCache/ containing the files NMLRUCache.h/m and NMLRUImageCache.h/m into your project.

Usage

Initialization:

Creating an LRU Image Cache singleton:

NMLRUCache *imageCache = [NMLRUCache sharedCache];

Changing Shared Cache Size i.e to 20 elements

  ```
     [NMLRUCache sharedCache].threshHold = 20;
 ```

Storing an image in the Cache:

 ```
     [imageCache setImage:image forKey:@"imageKey"];
     ```

Fetching Image from Cache

     ```
         [imageCache imageForKey:@"imageKey"];
     ```

License: MIT

UIDeviceComplete

UIDevice is handy and serves a purpose but it does lack the ability to do things like provide the screen size in inches or provide specific device model or family info.

Thats where this library comes in, a super light weight and simple set of extensions to UIDevice that make UIDevice even more fun to work with.

License: MIT

  • Swift

UIFontComplete

Make working with UIFont faster and less error-prone This mico library is simply just one giant Font enum that can be used in place of raw Strings when choosing a font type to use. Use code completion of the enum case to see available fonts, make runtime crashes due to font name typos near impossible!

License: MIT

  • Swift