Product Hunt surfaces the best new products, every day. It’s a place for product-loving enthusiasts to share and geek out about the latest mobile apps, websites, hardware projects, and tech creations.
[…] Product Hunt has become a must-read site in Silicon Valley.
[…] Product Hunt is an online community that caters to the tech product fanatics.
[Product Hunt] ballooned in popularity since its humble beginnings and has since become a destination site where folks could submit and vote on their favorite tech products.
[…] Product Hunt has evolved from a small email list into a must-read for those in the tech and startup space to discover the next great product.
Features
Dark mode support
Data persistence
Auto refresh every 5 minutes
Requirements
Swift 5.0
Xcode 11.x
Implement Product Hunt - UIKit
Import the ProductHunt framework in your UIApplicationDelegate:
import ProductHunt
Configure the PHManager shared instance in your app’s application:didFinishLaunchingWithOptions: method with:
The post that will be linked to the PHButton (either defined by slug or id)
In the view controller, override the viewDidLoad method to set the presenting view controller of the PHManager object.
PHManager.shared.presentingViewController = self
Add a PHButton to your storyboard, XIB file, or instantiate it programmatically. To add the button to your storyboard or XIB file, add a View and set its custom class to PHButton.
Implement Product Hunt - SwiftUI
Import the ProductHunt framework in your view struct:
import ProductHunt
Add the ProductHuntButton to your view with:
The post that will be linked to the button (either defined by slug or id)
Product Hunt badge for iOS.
Product Hunt surfaces the best new products, every day. It’s a place for product-loving enthusiasts to share and geek out about the latest mobile apps, websites, hardware projects, and tech creations.
Features
Requirements
Implement Product Hunt - UIKit
UIApplicationDelegate
:PHManager
shared instance in your app’sapplication:didFinishLaunchingWithOptions:
method with:PHButton
(either defined by slug or id)viewDidLoad
method to set the presenting view controller of thePHManager
object.PHButton
to your storyboard, XIB file, or instantiate it programmatically. To add the button to your storyboard or XIB file, add a View and set its custom class toPHButton
.Implement Product Hunt - SwiftUI
Import the ProductHunt framework in your view struct:
Add the
ProductHuntButton
to your view with:Installation
CocoaPods
You want to add pod
'ProductHunt', '~> 1.0'
similar to the following to your Podfile:Then run a
pod install
inside your terminal, or from CocoaPods.app.Swift Package Manager
Contributors ✨
Copyright © 2020 App Craft Studio. All rights reserved.