Present ActionSheet in SwiftUI on iPad

前端 未结 5 1689
梦谈多话
梦谈多话 2021-02-02 09:45

I\'ve gotten an ActionSheet to present just fine on an iPhone device. But it crashes for iPad. Says it needs the location for the popover. Has anyone had luck with this code? I\

5条回答
  •  梦谈多话
    2021-02-02 10:25

    Try this component, it will present an actionSheet on iPhone and a Popover on iPad and Mac. https://github.com/AndreaMiotto/ActionOver

提交回复
热议问题