In iOS, how do I create a button that is always on top of all other view controllers?

前端 未结 8 1859
悲哀的现实
悲哀的现实 2020-11-28 02:09

No matter if modals are presented or the user performs any type of segue.

Is there a way to keep the button \"always on top\" (not the top of the screen) throughout

8条回答
  •  感情败类
    2020-11-28 02:21

    You can use Paramount, which basically uses another UIWindow to display your button

    Manager.action = {
      print("action touched")
    }
    
    Manager.show()
    

提交回复
热议问题