Simple Swift wrapper for An API of Ice and Fire
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
IceAndFireLoader.xcodeproj
IceAndFireLoader
.gitignore
IceAndFireLoader.podspec
LICENSE
README.md

README.md

IceAndFireLoader

About

A simple Swift wrapper for An API of Ice and Fire. You can get more information on Reddit or directly check source code on Github.

Installation

You can install IceAndFireLoader easily via CocoaPods, just add following line to your PodFile;

pod 'IceAndFireLoader'

Alternatively you can directly add IceAndFire.swift file to your project.

Usage

3 structs for representing different resource types in the An API of Ice and Fire are defined;

  • IceAndFireCharacter
  • IceAndFireBook
  • IceAndFireHouse

For meaning of fields in these structs please check An API of Ice and Fire Documentation

IceAndFire class handles communication with the API, parses response and calls competition handler. Check main.swift for usage examples.

TODO

  • API versioning support
  • Caching
  • XCtest
  • Checking Linux compatibility.
  • Better pagination.