Swiftpack.co -  alfianlosari/TMDbMovieKit as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A TMDb Swift 5.1 API Wrapper for the REST API with SPM support
.package(url: "https://github.com/alfianlosari/TMDbMovieKit.git", from: "1.0.5")


A TMDb Swift 5.1 API Wrapper for the REST API.


  • Add the dependency to your target/project using Swift Package Manager
  • Import framework in your source
  • Initialize by passing the API Key from the TMDb website

How to use

  1. Initialize by passing the API Key
impot TMDbMovieKit

let tmdbStore = MovieStore(apiKey: "Insert API Key in here")
  1. Fetch Movies based on endpoint
tmdbStore.fetchMovies(from: endpoint, successHandler: {[weak self] (response) in
  let movies = response.results
  // Movies Fetched from endpoint
  }) {[weak self] (error) in
  // Error occured
  1. Fetch Movies based on id
tmdbStore.fetchMovie(id: id, successHandler: { [weak self](https://raw.github.com/alfianlosari/TMDbMovieKit/master/movie) in
       // Movie fetched with id
   }) {[weak self] (error) in
       // Error Occured


Stars: 1
Last commit: 1 year ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API