Vote for : Screen Edges Deferred is iOS

Sannyasin Brahmanathaswami brahma at hindu.org
Tue Dec 11 14:38:59 EST 2018


See this hibernated iOS enhancement request.

https://quality.livecode.com/show_bug.cgi?id=21737

I have an "immersive" module in my  app, I need to have following implemented. Maybe you would like to vote for it too?  All my iOS user complains "Oh, gee, in the puzzle, can how can I keep the notifications from  dropping down?"

Well, there is a way if you are developing directly in  xCode, but not from within LiveCode.
Https://developer.apple.com/documentation/uikit/uiviewcontroller/2887512-preferredscreenedgesdeferringsys
Declaration

var preferredScreenEdgesDeferringSystemGestures: UIRectEdge<https://developer.apple.com/documentation/uikit/uirectedge> { get }
Discussion
Normally, the screen-edge gestures defined by the system take precedence over any gesture recognizers that you define. The system uses its gestures to implement system level behaviors, such as to display Control Center.
Whenever possible, you should allow the system gestures to take precedence. However, immersive apps can use this property to allow app-defined gestures to take precedence over the system gestures. You do that by overriding this property and returning the screen edges for which your gestures should take precedence.
If you change the edges preferred by your view controller, update the value of this property and call the setNeedsUpdateOfScreenEdgesDeferringSystemGestures()<https://developer.apple.com/documentation/uikit/uiviewcontroller/2887507-setneedsupdateofscreenedgesdefer> method to notify the system that the edges have changed.

BR




More information about the Use-livecode mailing list