Hackers is an elegant iOS app for reading Hacker News written in Swift.

Overview

Hackers

Hackers

Hackers is an iPhone and iPad app for reading Hacker News on the go. It's optimised for quickly catching up on the latest news and comments without getting in your way.

Features

  • Thumbnails generated for posts
  • Collapsable comments threads
  • iOS 13 dark mode
  • Full iPad multitasking support
  • Safari View Controller
  • Upvote posts and comments
  • Open In Hackers share extension

Open Source

Hackers is open source and licenced under the MIT licence.

Download

Download in App Store

Or install the latest beta version from TestFlight.

Links

How to build

  1. Install CocoaPods, you can use RubyGems: gem install cocoapods.
  2. Install dependencies, in the project's root folder run pod install.
  3. Open the workspace file (Hackers.xcworkspace) in Xcode 11.5 or later and build.

Generate screenshots

  1. Install fastlane.
  2. Run fastlane screenshots in /fastlane

Credits

I use several open source projects in Hackers, in no particular order:


By Weiran Zhang
Website | Twitter | GitHub

Comments
  • dynamic iOS 13 dark mode

    dynamic iOS 13 dark mode

    Re-opening a PR I opened during the iOS 13 beta.

    This will enable dynamic switch of the theme based on the system theme.

    I didn't touch the settings side as the about branch is doing changes so i'll add the dynamic theme when this is done

    Currently enabling or disabling dark mode manually in the settings view will stop the app from automatically switch between system theme until a restart. I don't know what behavior you would expect from the app so i'll wait for your insight.

    opened by EkilDeew 6
  • Posts don’t load in 4.7.5 on iOS 16.0.2

    Posts don’t load in 4.7.5 on iOS 16.0.2

    Posts don’t load. No error is shown, just a spinner.

    Tried reinstalling the app.

    Steps to reproduce:

    • Install the latest iOS update 16.0.2
    • Open Hackers

    0B6A8524-EC9E-4805-92BF-753754AA5DA6

    opened by syradar 5
  • App stopped working

    App stopped working

    The app stopped working on my iPad and iPhone. I disabled Pihole, turned off Wi-Fi (so went directly to cellular), and still nothing. The app opens but spins trying to retrieve news.

    opened by rsponholtz 5
  • Using autofill in login form only fills username

    Using autofill in login form only fills username

    When using the autofill option on the username field only the username gets filled in.

    If I use the option on the password field both fields get filled.

    Since I can reproduce with 2 different password managers (KeePassium and Strongbox) it seems to be an iOS integration issue.

    bug 
    opened by delreluca 5
  • UI improvements [WIP, DO NOT MERGE]

    UI improvements [WIP, DO NOT MERGE]

    This PR adds a few nice UI tweaks:

    • Two new themes, a pure black theme for OLED devices and a "original" theme which matches news.ycombinator.com in terms of colors and fonts (Verdana).
    • Handoff support for comments and links
    • Allow users to choose a browser to open a link in (SFSafariViewController, SFSafariViewController in reader mode, Safari or Chrome)
    • Long press on a link in NewsViewController to share link
    • When sharing, we give the user the option of either sharing the content link or the comments link
    • Long press on a comment now allows sharing a link to that comment
    • SFSafariViewController is initialized with barCollapsingEnabled = TRUE (Indicates if SFSafariViewController should enable collapsing of the navigation bar and hiding of the bottom toolbar when the user scrolls web content.)
    • Hides tab bar on comments view
    • Tapping a jobs post goes directly to the link instead of comments since job posts don't have comments.
    • Extends comments view to superview so comments are behind home indicator
    • Redid the settings page with Eureka so that it's easier to handle the inline theme picker as well as provide a good foundation for other future settings.
    • Removed the custom share icon and instead used the system default icon.
    • Minor other tweaks

    @weiran Can you provide me sources for the icons you are using? I need to generate a new set of icons that look good in the original theme as right now the grey doesn't look great...

    opened by robbiet480 5
  • IOS 16? Long comments are truncated

    IOS 16? Long comments are truncated

    I recently installed the beta for iOS 16 and have noticed several times that long comments seem to be truncated, ending mid sentence. (Checking other apps like HACK or the web version shows the full comments).

    bug 
    opened by ssuess 4
  • Dynamic iOS 13 dark mode support

    Dynamic iOS 13 dark mode support

    Enabling dynamic dark mode theme responding to global iOS theme. There is a bit more work to be done like adding a switch to activate / deactivate this dynamic behavior and keep legacy behavior. Also minor color adjustment might be needed

    opened by EkilDeew 4
  • Fix duplicates in feed and next page fetching for

    Fix duplicates in feed and next page fetching for "New" and "Jobs" posts

    Fixes https://github.com/weiran/Hackers/issues/194 and https://github.com/weiran/Hackers/issues/54

    • Duplicate posts may show up in the feed when you scroll to load next posts (this happens when post ranking changes in between).
    • Currently if you scroll through "New" or "Jobs" posts, it reloads the same set of posts over and over again because their API uses post IDs instead of page numbers.

    Let me know if I should change anything - I'm pretty new to Swift.

    I really love the app!

    opened by JeffreyCA 3
  • Dark mode

    Dark mode

    Hi, awesome app! Used it daily for a long time.

    Is there a way to enable dark mode without setting my whole OS to dark mode? I know this used to be available and then was removed.

    Thanks Nic

    opened by mulhoon 3
  • Error connecting to Hackers News on launch

    Error connecting to Hackers News on launch

    When Hackers is first launched I get the error message below. This only started happening today and happens consistently after each new launch. Pulling down to refresh clears the error and loads the feed.

    image

    opened by robbell 3
  • iOS 14, default browser set to Chrome

    iOS 14, default browser set to Chrome

    When you set your default browser to Chrome in iOS 14, the "article link" within each news story doesn't work. You can click it, but nothing happens (see video).

    Setting the default browser within iOS back to Safari fixes this issue.

    bug 
    opened by bradleyg 3
  • PARAGRAPH_NEED_NEW_LINES_HERE

    PARAGRAPH_NEED_NEW_LINES_HERE

    I just noticed that on the app looking at https://news.ycombinator.com/item?id=32261868#32263775 it added the paragraphIdentifier but not replaced it.

    bug 
    opened by benperiton 2
  • Poll support

    Poll support

    HN has a (it seems rarely used) poll feature, see https://news.ycombinator.com/item?id=29755614

    Hackers doesn't show the options or at least indicate the presence of a poll. Reading the comments seems to work fine.

    enhancement 
    opened by delreluca 0
  • Back and forth navigation

    Back and forth navigation

    Hi, this is a non-urgent feature request you might want to consider.

    You can go back by swiping left, but it is not possible to swipe right to get back to the comments (at the same position), instead you have to find the same article and scroll to the correct position.

    I would suggest to add a swipe right gesture to this end.

    This might be more complicated than it seems as it is possible to have a path of more than 1 discussion, e.g. when clicking a HN link in a comment.

    opened by delreluca 0
Releases(4.7.8)
  • 4.7.8(Oct 14, 2022)

    What's Changed

    • Fix URL appearing in titles by @weiran in https://github.com/weiran/Hackers/pull/248
    • Remove URL from title and SwiftLint from homebrew for apple silicon by @SR42 in https://github.com/weiran/Hackers/pull/249
    • Merging in #249 by @weiran in https://github.com/weiran/Hackers/pull/251

    New Contributors

    • @SR42 made their first contribution in https://github.com/weiran/Hackers/pull/249

    Full Changelog: https://github.com/weiran/Hackers/compare/4.7.6...4.7.8

    Source code(tar.gz)
    Source code(zip)
  • 4.7.6(Sep 29, 2022)

    What's Changed

    • Adapt to changed HTML by @weiran in https://github.com/weiran/Hackers/pull/246

    Full Changelog: https://github.com/weiran/Hackers/compare/4.7.5...4.7.6

    Source code(tar.gz)
    Source code(zip)
  • 4.7.5(Sep 29, 2022)

    What's Changed

    • Fixes Betterbird URL bug by @weiran in https://github.com/weiran/Hackers/pull/244

    Full Changelog: https://github.com/weiran/Hackers/compare/4.7.4...4.7.5

    Source code(tar.gz)
    Source code(zip)
  • 4.7.4(Sep 21, 2022)

    What's Changed

    • Update readme by @weiran in https://github.com/weiran/Hackers/pull/232
    • [CI] update actions by @Fdawgs in https://github.com/weiran/Hackers/pull/234
    • Updated screenshots by @weiran in https://github.com/weiran/Hackers/pull/233
    • New Notifications UI by @weiran in https://github.com/weiran/Hackers/pull/239
    • Fix login on iPads by @weiran in https://github.com/weiran/Hackers/pull/240
    • Logout by @weiran in https://github.com/weiran/Hackers/pull/241
    • Remove registration link from Login by @weiran in https://github.com/weiran/Hackers/pull/242

    New Contributors

    • @Fdawgs made their first contribution in https://github.com/weiran/Hackers/pull/234

    Full Changelog: https://github.com/weiran/Hackers/compare/4.7...4.7.4

    Source code(tar.gz)
    Source code(zip)
  • 4.7(Apr 9, 2022)

    What's Changed

    • New Login UI by @weiran in https://github.com/weiran/Hackers/pull/231

    Full Changelog: https://github.com/weiran/Hackers/compare/4.6.7...4.7

    Source code(tar.gz)
    Source code(zip)
  • 4.6.7(Apr 4, 2022)

    What's Changed

    • Fix comments crash by @weiran in https://github.com/weiran/Hackers/pull/230

    Full Changelog: https://github.com/weiran/Hackers/compare/4.6.6...4.6.7

    Source code(tar.gz)
    Source code(zip)
  • 4.6.6(Dec 31, 2021)

    What's Changed

    • New Screenshots by @weiran in https://github.com/weiran/Hackers/pull/223
    • Show comments segue for selfposts in Jobs by @JeffreyCA in https://github.com/weiran/Hackers/pull/225
    • Jobs self posts fix by @weiran in https://github.com/weiran/Hackers/pull/226

    Full Changelog: https://github.com/weiran/Hackers/compare/4.6.5...4.6.6

    Source code(tar.gz)
    Source code(zip)
  • 4.6.5(Dec 20, 2021)

    What's Changed

    • Fix duplicates in feed and next page fetching for "New" and "Jobs" posts by @JeffreyCA in https://github.com/weiran/Hackers/pull/222

    New Contributors

    • @JeffreyCA made their first contribution in https://github.com/weiran/Hackers/pull/222

    Full Changelog: https://github.com/weiran/Hackers/compare/4.6.4...4.6.5

    Source code(tar.gz)
    Source code(zip)
  • 4.6.4(Dec 4, 2021)

    What's Changed

    • Pull to refresh comments by @ballwood in https://github.com/weiran/Hackers/pull/217
    • iOS 15 update by @weiran in https://github.com/weiran/Hackers/pull/221

    Full Changelog: https://github.com/weiran/Hackers/compare/4.6.3...4.6.4

    Source code(tar.gz)
    Source code(zip)
  • 4.6.3(Oct 22, 2021)

  • 4.6.2(Oct 20, 2021)

    Adapt to Hacker News HTML changes.

    What's Changed

    • Fixed overlapping backgrounds by @weiran in https://github.com/weiran/Hackers/pull/209
    • Update for HN HTML change by @weiran in https://github.com/weiran/Hackers/pull/215

    Full Changelog: https://github.com/weiran/Hackers/compare/4.6...4.6.2

    Source code(tar.gz)
    Source code(zip)
  • 4.6(Jun 8, 2021)

  • 4.5.4(May 9, 2021)

    Modernisation and preparation of the code base for future enhancements.

    • Switched to new UICollectionView based feed list
    • Removed theming system and consolidated all colours into asset catalogs
    • Resolved many auto layout issues by ditching UIStackViews for normal constraints
    Source code(tar.gz)
    Source code(zip)
  • 4.5.3(Apr 18, 2021)

  • 4.5.2(Apr 18, 2021)

  • 4.5.1(Jan 9, 2021)

  • 4.5(Jan 9, 2021)

  • 4.4.2(Oct 23, 2020)

  • 4.4.1(Jul 6, 2020)

  • 4.4(Jul 6, 2020)

  • 4.3.1(Jun 22, 2020)

    • Changed thumbnail fetcher to use new Heroku hosted service
    • Fixed regression when sharing an article would share the article URL rather than the Hacker News URL
    Source code(tar.gz)
    Source code(zip)
  • 4.3(Jun 20, 2020)

  • 4.2.1(Jun 20, 2020)

  • 4.2(May 11, 2020)

    • Overhauled the theme system, you can now set it to follow the system theme and it will adapt automatically to changes
    • More information about the app in the Settings screen
    • Fixed a rare crash when opening comments

    Many thanks to @EkilDeew for your help with this release.

    Source code(tar.gz)
    Source code(zip)
  • 4.1.2(May 11, 2020)

  • 4.1.1(Oct 26, 2019)

  • 4.1(Oct 26, 2019)

  • 4.0.1(Sep 28, 2019)

  • 4.0(Jun 17, 2019)

    • Login to your Hacker News account, this lets you vote on posts and comments
    • Swipe right on posts and comments to up vote them
    • Swipe left on comments to collapse the whole thread
    • Many more UI and performance improvements, and lots of bugs fixed
    Source code(tar.gz)
    Source code(zip)
  • 3.6.2(Apr 14, 2019)

Owner
Weiran Zhang
iOS and web
Weiran Zhang
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