Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add / remove options if I have a login page #9

Open
ezar opened this issue Mar 11, 2017 · 1 comment
Open

Add / remove options if I have a login page #9

ezar opened this issue Mar 11, 2017 · 1 comment

Comments

@ezar
Copy link

ezar commented Mar 11, 2017

Hi,
Thanks for this component. Can we add or remove options outside UI Controller?
Can you send a sample?
Regards,

@ricardopereira
Copy link
Owner

@ezar Thanks for opening an issue. By options do you mean shortcuts? You need to have access to the QuickActions instance and do something like:

let shortcuts = [Shortcut(type: AppShortcut.lastItems, title: "Last items", subtitle: nil, icon: nil)]
quickActions?.add(shortcuts, toApplication: application)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants