Here’s the simplest custom indicator. Feel free to check the CariocaIndicatorConfiguration extension for more customisation possibilities.
class CariocaCustomIndicatorView: UIView, CariocaIndicatorConfiguration {
///This will use the basic shape, and change the color to black.
var color: UIColor = UIColor.black
}
Boomerang
A boomerang always comes back to it’s original place.
By default, the boomerang is set to none. It means that the menu will stay where the user let it.
The other boomerang options are :
horizontal : The indicator will return always on the original edge.
vertical : The indicator will return always on the original Y position. It may switch from Edge.
originalPosition : The indicator will always come back to it’s original position
👨💻 TODO
Add a check for the edges at the initialisation. (Only .left & .right are allowed)
Add UI Tests
Add a live tutorial to indicate users how to get the most of this menu
You’re starting a new iOS app, and you want to innovate on the user experience.
🇧🇷 Why the name CariocaMenu?
I didn’t want to use the same naming convention that EVERYONE uses. I could have named it ASSuperCoolMenu, but it sucks.
A Carioca is someone who lives in Rio de Janeiro 🇧🇷. I lived there for two months, and this idea was born while I was there.
⚡️ Quicklook
The fastest zero-tap iOS menu
CariocaMenu is a simple, elegant, fast navigation menu for your iOS apps.
🏆 Features
📝 Requirements
📢 Communication
📲 Installation
CocoaPods
CariocaMenu is now available on CocoaPods. Simply add the following to your project Podfile, and you’ll be good to go.
Carthage
Carthage is a decentralised dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
To integrate CariocaMenu into your Xcode project using Carthage, specify it in your
Cartfile
:Run
carthage
to build the framework and drag the builtCariocaMenu.framework
into your Xcode project.Manually
If you prefer, you can integrate CariocaMenu into your project manually.
Just Drag&Drop all the files under
Sources/
into your project.💻 Usage
Preparing your menu controller
To create and display your menu, you’ll need to create a custom CariocaController (UITableViewController & CariocaDataSource)
This will define your menu settings & appearance. Check DemoMenuContentController.swift for code sample.
Creating your menu
For the complete code, check MainViewController.swift.
Managing rotation
To be able to manage the rotation of the menu, you’ll need to forward the rotation event to your menu instance.
Creating your custom indicator
Here’s the simplest custom indicator. Feel free to check the CariocaIndicatorConfiguration extension for more customisation possibilities.
Boomerang
A boomerang always comes back to it’s original place. By default, the boomerang is set to
none
. It means that the menu will stay where the user let it.The other boomerang options are :
horizontal
: The indicator will return always on the original edge.vertical
: The indicator will return always on the original Y position. It may switch from Edge.originalPosition
: The indicator will always come back to it’s original position👨💻 TODO
live tutorial
to indicate users how to get the most of this menu⚠️ Known issues
Check the (GitHub issues)
🤔 FAQ
😍 Why should I use
CariocaMenu
?You’re starting a new iOS app, and you want to innovate on the user experience.
🇧🇷 Why the name
CariocaMenu
?I didn’t want to use the same naming convention that EVERYONE uses. I could have named it
ASSuperCoolMenu
, but it sucks. ACarioca
is someone who lives in Rio de Janeiro 🇧🇷. I lived there for two months, and this idea was born while I was there.🤙🏼 Contact
❤️ Contributions
This is an open source project, feel free to contribute!
See all contributors
Project generated with SwiftPlate
📝 License
CariocaMenu is released under the MIT license. See LICENSE for details.