fastred / AHKActionSheet

An alternative to the UIActionSheet inspired by the Spotify app.
MIT License
1.16k stars 130 forks source link

Add Support For App Extensions #29

Open mhaleem opened 9 years ago

mhaleem commented 9 years ago

Support Presenting AcitonSheet directly through UIViewController and add precompile preprocessors to avoid compilation errors for App Extensions targets.

fastred commented 9 years ago

Thank you for sending this PR! Do you think it would make sense to use view controller presentation also outside of app extension? It would make the code more straighforward.

AHKActiomSheet is currently presented in UIWindow, because that was the way UIActionSheet worked.

mhaleem commented 9 years ago

That was my first thought to use AHKActionSheet in a viewcontroller incase of app extension but then i found it will not give us the same functionality as it is now, simply with the PR i have submitted you can use the extension viewcontroller itself and the AHKActionSheet will behave exactly the same as it is currently.