Skip to content

codescapade/safe-area-kha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe Area Kha

Kha library to get the safe area on iOS devices so you can check where the notch is. Only works on iOS 11+. On older versions of iOS the insets return 0.

Installation

Clone this repository into the Libraries folder of your Kha project and add the following line to your khafile.js:

project.addLibrary('safe-area-kha');

Usage

To get the insets on all sides of the screen call:

SafeArea.getInsets();

This will return an Insets instance with the insets in screen pixels.

{
  left: 0,
  right: 0,
  top: 0,
  bottom: 0
}

About

iOS Safe area library for Kha

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published