When Apple released the iPhone X, they removed iPhone's most iconic feature—the home button.
HomeButton is a CocoaPod that brings back the home button. Best part: it actually works.
HomeButton can be added to your poject with zero lines of code. Yes, that's right—no code needed. Simply link the framework in your app, and the home button adds itself.
HomeButton supports four styles:
The default style is
classic. To change the style, add the following line:
HomeButton.style = .modern
This can be placed anywhere in your app, but it probably makes the most sense in your AppDelegate's
Installation via CocoaPods
HomeButton is available through CocoaPods. To install it, simply add the following line to your Podfile:
Frequently Asked Questions
Will this cause my app to be rejected from the App Store?
It explicity breaks guideline 5.2.1 due to usage of private API's and probably 5.2.5 as well for mimicking system UI. So honestly it depends on the mood of the reviewer.
Is this a joke?
Because satire is sometimes lost over the internet—yes, this is a joke. It was created as a fun April Fool's project. However, we think it's actually a decent re-creation of the home button, and is valuable as a UI/UX experiment.
MIT. See the LICENSE file for more info.