Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 528 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 528 Bytes

RandomUserKit

This is a sample project to use as an example for a post on the buddybuild blog.

Follow along by forking the repository.

Usage

import RandomUserKit

let provider = Provider()
provider.fetchOne { results in 
  switch results { 
    case let .success(user):
      print("Fetched user \(user.name.first) \(user.name.last) (\(user.email))")
    case let .failure(error):
      print("Got error: \(error)")
  }
}