GithubHelp home page GithubHelp logo

sgl0v / tmdb Goto Github PK

View Code? Open in Web Editor NEW
206.0 7.0 47.0 15.06 MB

iOS application for the Movie DB

Home Page: https://www.onswiftwings.com/posts/mvvm-with-combine/

Swift 100.00%
swift combine-framework mvvm

tmdb's Introduction

TMDb iOS Application

This is the demo project of the article written in my blog. The application works as a mobile client for The Movie DB. It follows MVVM software design pattern and is built with Combine framework.

tmdb's People

Contributors

sgl0v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tmdb's Issues

Implement router or coordinator?

Thanks for this. This is perfect, I mean almost, I've been looking for an easy-to-read sample UIKit project with Combine + MVVM-C. Nevertheless, I appreciate the blog and you providing the whole project.

Catch will never get executed.

Awesome repo. Thank you, sir.

I have a question rather than an issue.

In Publisher+Utils.swift, I get a warning that the .catch will never get executed (Xcode Version 12.5 beta 3).

Any suggestions to fix that warning?

Thanks and regards.

extension Publisher {
...
    static func just(_ output: Output) -> AnyPublisher<Output, Failure> {
        return Just(output)
            .catch { _ in AnyPublisher<Output, Failure>.empty() }
            .eraseToAnyPublisher()
    }
...
}

Posters get reset

The current state of the project is that whenever the cell gets reused, we cancel the image loading and set the image of the poster imageView to nil, which causes the blinking of the imageViews when scrolling.
Is there a way to prevent this? Even if I integrate an imageLoader library (eg. MapleBacon) with caching and Combine support, the issue is still there (even if you remove the cancelImage loading).

It seems the really ideal way to async-ly load an image to reusable cells is to not use Combine? And rather directly download the image to the imageView.

Demo:

aaaa

See the fix in the PR: #3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.