GithubHelp home page GithubHelp logo

breakingnews's Introduction

Breaking News πŸ“°

I model the data I got from a haber site and transferred it to the application with Alamofire. I created a detail page for the news and showed the pictures by downloading them with Kingfisher. I made the auto layout of the application programmatically with Snapkit. In addition, i made the page transitions with Hero. I hope you like.

Technologies

  • MVVM Architecture βœ…
  • Programmatically βœ…
  • Hero βœ…
  • Lottie βœ…
  • Kingfisher βœ…
  • Alamofire βœ…
  • Snapkit βœ…
  • SparkUI βœ…

Demo

Ekran.Kaydi.2022-06-29.13.30.20.mov

API

Ex: https://newsapi.org

{
final class ServiceManager {
    public static let shared: ServiceManager = ServiceManager()
}

extension ServiceManager {
    func fetch<T>(path: String, onSuccess: @escaping (T) -> (), onError: (AFError) ->()) where T: Codable {
        
        AF.request(path, encoding: JSONEncoding.default).validate().responseDecodable(of: T.self) { response in
            
            guard let model = response.value else { print( response.error as Any ); return }
            onSuccess(model)
            }
        }
    }
}

breakingnews's People

Contributors

tugberkcanozen avatar

Stargazers

HikmetKarimli avatar AnΔ±l A. avatar

Watchers

 avatar

Forkers

talhavarol-dev

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.