Skip to content

Latest commit

 

History

History
87 lines (49 loc) · 4.37 KB

CHANGELOG.md

File metadata and controls

87 lines (49 loc) · 4.37 KB

Changelog

v3.0.0 - (3 June 2024)

✨ Improvements

v2.1.2 - (2 June 2024)

✨ Improvements

v2.1.1 - (18 Jun 2023)

Breaking Change

  • Make safe-area custom element opt-in to register only if needed and to also to prevent breaking evaluating SafeAreaController in SSR environments. by @jjang16 in #9

If earlier you were using the safe-area tag by simple (Empty) import, you now have to import and call function registerSafeAreaElement

// root.component.ts or your-component.ts

import { registerSafeAreaElement } '@aashu-dubey/capacitor-statusbar-safe-area';

registerSafeAreaElement();
  • SafeAreaType type has been renamed to SafeAreaInset (changelog)

v2.1.0 - (14 May 2023)

✨ Improvements

v2.0.0 - (1 Apr 2023)

This version adds support for an addition way to handle safe area on device, using safe-area web component exported by the plugin.

It can be used as follows:

<safe-area>
  <!-- Other content -->
</safe-area>

It also comes with 2 attributes to control it's behaviour, mode and edges.

For example, to use safe area insets as element's margin instead of default padding, and to apply only for top, we would write it as follows:

<safe-area mode="margin" edges="top">
  <!-- Other content -->
</safe-area>

more details about it's usage can be found in the readme.

✨ Features

  • Added support for a new safe-area web component (#6) (019b125)

🐛 Fixes

  • Fixed background thread swift warnings on iOS (#5) (4a55cee)

v1.1.0 - (2 Nov 2022)

✨ Improvements

v1.0.1 - (29 May 2022)

  • fix: podspec issue on iOS when running npx cap sync (3bdf607).

v1.0.0 - (20 Mar 2022)

Initial release.

Using this package you can get Status bar height and Safe area insets on Android & iOS on Ionic applications