Giter Site home page Giter Site logo

newsappswiftui's Introduction

NewsAppSwiftUI

Overview

NewsApp is a SwiftUI-based iOS application that leverages the NewsAPI to fetch and display news articles. Users can explore news based on various categories, search for specific topics, view their search history, bookmark articles, and share links. The app also allows users to open news articles in Safari for a more detailed reading experience. News app built using MVVM architecture.

Features

  • News Categories: Explore news articles across various categories - Business, Sports, Technology, Entertainment, Science, and Health.
  • Search History: Easily revisit recent searches with the app's search history feature.
  • Bookmarking: Save your favourite articles using Core Data for persistent storage. Access them in the Bookmarks view.
  • Safari Integration: View full articles by opening links in the Safari browser directly from the app
  • Sharing: Share interesting articles with friends and family through the native iOS sharing functionality.

Code Snippet

//
//  SafariView.swift
//  NewsAppSwiftUI
//
//  Created by Muktar Hussein on 27/11/2022.
//

import SwiftUI
import SafariServices

struct SafariView: UIViewControllerRepresentable {
    
    let url: URL
    
    func makeUIViewController(context: Context) -> some SFSafariViewController {
        SFSafariViewController(url: url)
    }
    
    func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) {}
    
}

Home

Search

Bookmarks

Tools and Frameworks

  • SwiftUI: Declarative UI framework for building robust and interactive user interfaces.

  • Core Data: Apple's framework for data management, used here for persistent storage of bookmarks.

  • SafariServices: Integrated for a seamless browsing experience within the app.

    Getting Started

  1. Clone the repository.
git clone https://github.com/Huss3n/NewsAppSwiftAppSwiftUI
  1. Open the project in Xcode.
  2. Build and run the app on a simulator or a physical device.

License

This project is licensed under the MIT License. Feel free to contribute!

newsappswiftui's People

Contributors

huss3n avatar

Watchers

 avatar

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.