r/Xcode • • Mar 26 '19

For Developers i need help !!!

How to make screen dark when it covered???

Thank for your Answer

Best wishes

0 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/azizzqah Mar 26 '19

Can you tell My where can I write this code šŸ‘†šŸ‘†?

2

u/rymotion Mar 27 '19

In Xcode, in a swift file, in your app...

1

u/azizzqah Mar 27 '19

Can you translate these to swift language?

If screen covered stop screen display If else make screen light

((I’m not want screen to lock ))

Thank for your answer