SvenTiigi / WhatsNewKit

Showcase your awesome new app features 📱
https://sventiigi.github.io/WhatsNewKit/
MIT License
3.92k stars 193 forks source link

Secondary action: show actionSheet? #87

Closed john-work-ios closed 3 months ago

john-work-ios commented 3 months ago

Is your feature request related to a problem?

I'm trying to show an actionSheet for the secondary action. I tried in UIKit: problem: I don't have a reference to the button to have a sourceView & sourceRect on iPad I tried in SwiftUI: I could not manage to show an actionSheet, only present a fullView

Any way to achieve this? I would not have thought it to be so complicated at first. Thanks!

What solution would you like?

N/A

What alternatives have you considered?

N/A

Any additional context?

No response

SvenTiigi commented 3 months ago

Hi @john-work-ios,

adding an action sheet directly on the secondary button is currently not possible / supported.

john-work-ios commented 3 months ago

Hi @SvenTiigi,

thanks for the feedback. The use case, which I think is interesting is that the secondary button is "Follow the app on...", and the actionSheet let the user choose the social media.

Thanks!