Swiftpack.co - alfianlosari/TMDbMovieSwiftUIKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by alfianlosari.
alfianlosari/TMDbMovieSwiftUIKit 0.2.3
TMDb SwiftUI wrapper for View and View Model using SPM and TMDBKit
⭐️ 0
🕓 4 years ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/alfianlosari/TMDbMovieSwiftUIKit.git", from: "0.2.3")

TMDBMovieSwiftUIKit

A TMDb SwiftUI View and View Model wrapper using TMDbMovieKit Library

Installation

  • Add the dependency to your target/project using Swift Package Manager
  • Import framework in your source

Features

  1. MovieListViewModel: an Observable Object that publishes movies, error, and isLoading propery. trigger fetching by invoking loadMovies passing the endpoint
  2. MovieViewModel: an Observable object that publishes movie, error, and isLoading property. trigger fetching by invoking loadMovie passing the movieId
  3. MovieListView: A SwiftUI List wrapping the MovieListViewModel
  4. MovieView: A SwiftUI View wrapping the MovieViewModel

GitHub

link
Stars: 0
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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