- 1.0.3 and master126.96.36.199.04.2
- 1.0.3 and masteriOSmacOS(Intel)macOS(ARM)LinuxtvOSwatchOS
Product Hunt badge for iOS
[...] 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.
PHManagershared instance in your app's
PHButton(either defined by slug or id)
PHManager.shared.configure(forPost: .slug("timizer"), token: "<YOUR_PRODUCT_HUNT_TOKEN>")
viewDidLoadmethod to set the presenting view controller of the
PHManager.shared.presentingViewController = self
PHButtonto 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
ProductHuntButtonto your view with:
ProductHuntButton(post: .slug("<YOUR_SLUG>"), token: "<YOUR_PRODUCT_HUNT_TOKEN>") .frame(width: 260.0, height: 60.0, alignment: .center) .padding(10.0)
You want to add pod
'ProductHunt', '~> 1.0' similar to the following to your Podfile:
target 'MyApp' do pod 'ProductHunt', '~> 1.0' end
Then run a
pod install inside your terminal, or from CocoaPods.app.
Copyright © 2020 App Craft Studio. All rights reserved.