A Hacker News reader iOS app written in Swift.

Overview

HackerNews

A Hacker News reader iOS app written in Swift.

Features

  • View "top", "newest", and "show" posts from Hacker News.
  • Read posts using the SFSafariViewController component.
  • Uses the official Firebase-based Hacker News API.

Getting Started

  1. git clone https://github.com/amitburst/HackerNews.git
  2. cd HackerNews
  3. pod install (requires CocoaPods)
  4. Open HackerNews.xcworkspace in Xcode 8.0 or higher.

Contributing

Please feel free to help out with this project! If you see something that could be made better or want a new feature, open up an issue or send a Pull Request! I don't really plan on putting this out on the App Store, but I think it's a great learning resource for those interested in iOS development with Swift.

Screenshots

Main View Browser View

License

MIT

Comments
  • Firebase.framework-2.3.3.zip  create-dirs

    Firebase.framework-2.3.3.zip create-dirs

    pengtingdeMacBook-Pro:HackerNews patrick$ pod install Updating local specs repositories Analyzing dependencies Downloading dependencies Installing Firebase (2.3.3)

    [!] Error installing Firebase [!] /usr/bin/curl -f -L -o /var/folders/fz/k44v3dq925nb2f6vdklx6rw40000gn/T/d20151120-3687-kwt8qu/file.zip https://cdn.firebase.com/ObjC/Firebase.framework-2.3.3.zip --create-dirs

    % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 13 8155k 13 1087k 0 0 1687 0 1:22:30 0:10:59 1:11:31 0curl: (18) transfer closed with 7237202 bytes remaining to read

    opened by patrickpeng2091 10
  • Data from HN not populating app

    Data from HN not populating app

    I followed the instructions from Getting Started. The app runs, but no data is being displayed on the app besides an advertisement.

    I'm new to iOS development, so I could be missing something in my Xcode setup.

    screen shot 2015-02-18 at 12 49 44 pm


    screen shot 2015-02-18 at 12 53 19 pm

    opened by tylerzika 3
  • Deprecation warning

    Deprecation warning

    What is this?

    There was a deprecation warning image

    What did I do?

    I replaced

    refreshControl.addTarget(self, action: "retrieveStories", forControlEvents: .ValueChanged)
    

    with

    refreshControl.addTarget(self, action: #selector(MainViewController.retrieveStories), forControlEvents: .ValueChanged)
    
    
    opened by tuliot 1
  • Fixed crash bug when tapping scrollview while refreshing

    Fixed crash bug when tapping scrollview while refreshing

    What is this?

    When the scrollview is loading, if you tap on a cell or attempt to scroll, you will get a fatal error with because of an index that's out-of-bounds. See Issue #30

    What did I do?

    The stories array was being cleared whenever retrieveStories() was called. I removed the line of code that did that. I also initialized stories to [] at declaration

    opened by tuliot 1
  • pod install error

    pod install error

    Do you know how to solve this error Installing Firebase (2.4.3)

    [!] Error installing Firebase [!] /usr/bin/curl -f -L -o /var/folders/4n/r52nhvys2_v1whps16vzs85c0000gn/T/d20160322-80022-1oihoos/file.zip https://cdn.firebase.com/ObjC/Firebase.framework-2.4.3.zip --create-dirs

    % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to cdn.firebase.com port 443: Connection reset by peer

    opened by dsxNiubility 1
  • A bit of refactoring

    A bit of refactoring

    I did some refactoring:

    • extracted cancel block so that the code is not repeated twice.
    • to simplify a bit the retrieveStories function I extracted the creation of a story to its own function
    • Story is not expected to change so all properties can be immutable as well
    opened by gregttn 1
  • pod install -bash: pod: command not found

    pod install -bash: pod: command not found

    [luke@Air:~/APP/HackerNews]$ ls HackerNews HackerNewsTests Podfile.lock HackerNews.xcodeproj LICENSE README.md HackerNews.xcworkspace Podfile [luke@Air:~/APP/HackerNews]$ pod install -bash: pod: command not found

    opened by xigyou 1
Owner
Amit Burstein
Amit Burstein
NewsAPISwift is a Swift client for News API V2, a service that provides breaking news headlines, and search for articles from over 30,000 news sources and blogs.

NewsAPISwift NewsAPISwift is a Swift client for News API V2, a service that provides breaking news headlines, and search for articles from over 30,000

Lucas Lima 22 Feb 10, 2022
App that shows recently posted articles about Android or iOS on Hacker News

App that shows recently posted articles about Android or iOS on Hacker News

Jose Moffa 0 Nov 9, 2021
Matthew Ogtong 0 Jan 20, 2022
A small, read-only app for Hacker News.

Hacker News Reader Available on the App Store This is a simple Hacker News front-page reader that I cooked up because I didn't like any existing solut

Ryan Nystrom 259 Dec 11, 2022
Hacker News client for macOS

HNReaderApp This is the public repository for the HNReader macOS application. You can report any issue and suggest/request new features in the issue s

Mattia Righetti 186 Oct 14, 2022
HackerWeb 2: A read-only Hacker News client.

HackerWeb 2 A read-only Hacker News client. Only 30 front-page stories. No more no less. Revolutionary comments thread UI. Smart collapse and easy nav

Chee Aun 51 Dec 27, 2022
Daily News is a news app with good looking user interface ! Apps architecture is MVVM and used RxSwift for binding.

Daily News Hey ! Daily News is a news app with good looking user interface ! Apps architecture is MVVM and used RxSwift for binding. Architecture I pr

Latif Atci 39 Dec 13, 2022
News app to see daily news from new York Times

News This project is demo project for newyork time apis news feed. Generally thi

kamalesh 0 Dec 18, 2021
News - A news app that use NewsAPI

News app - UIKit This is a news app that use NewsAPI - Features MVC design patte

Muhammed Faruk Söğüt 1 Jan 4, 2022
News App for Latinx News built in UIKit programmatically

LatinxNewsApp News App for Latinx News built in UIKit programmatically Overview LatinxNewsApp is a design taken from a bigger idea. It is a news app t

Bryan Gomez 1 Apr 21, 2022
📰 iOS news app in the style of the NYT, WSJ, CNN, BBC, FB, Twitter, Reddit & more - Includes a tvOS app :tv:

News iOS news app in the style of Apollo, Apple News, Axios, BBC, CNN, Facebook, Facebook News, FastNews, Flipboard, Lil News, NBC News, Reddit, The N

null 119 Dec 17, 2022
Small iOS app to show some COVID-19 health, data, news and tweets ⚡

covid19.swift Small iOS app to show some COVID-19 health, data, news and tweets ⚡ Requirements Xcode 12, iOS 14 Credits API: COVID-19 API: News Tweets

null 26 Nov 30, 2022
This is my version of the H4X0R News app, taught by Angela Yu on the iOS Development Bootcamp.

H4X0R News ?? (I didn't choose the name btw) What is it about? H4X0R News is an app that shows the front page news from Hacker News Website, and when

Victor Colen 0 Nov 2, 2021
Today. News app for iOS

Today - News app for iOS This iOS app displays a list of news, fetched from mediastack API. Running This Project Clone this project and open with XCod

Ege Alpay 0 Nov 28, 2021
Headline News View Example App for iOS. You can display the articles fetched by rss.

HeadLineNews-ObjC Headline News View Example App for iOS. You can display the articles fetched by rss. PiP(Picture in Picture) is also supported DEMO

null 11 May 31, 2022
Fancy news app that diwnloads data from new.com api and shows it in a paging collectionview.

Fancy news reader PAging collection view that shows latest news from techcurch.com and displays full content in a detail page, was built to practice t

Abdul-Mujeeb Aliu 31 Feb 10, 2022
News app that using the NewsAPI

Appcent-Case It's News app that using the NewsAPI. Features Search News Show News Detail Add Favorite Delete Favorite Clear Favorites Share News Show

Ercan Garip 0 Aug 10, 2022
SimpleRSSReader is a simple app showing the latest Apple news.

SimpleRSSReader SimpleRSSReader is a simple app showing the latest Apple news. It demos the usage of following stuff: How to use XML Parser Delegate t

Milenko 1 Dec 8, 2021
A beautifully designed app for Apple Developer News

A beautifully designed app for Apple Developer News

Milan Manwar 17 Apr 6, 2020