Skip to content

ujell/IceAndFireLoader

Repository files navigation

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.

About

Simple Swift wrapper for An API of Ice and Fire

Resources

License

Stars

Watchers

Forks

Packages

No packages published