Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71389

Display and support issue for IOS 19

$
0
0

Hello,

I just updated the Capacitor packages to the latest stable version but now, there is some little issues:

  1. The @capacitor/keyboard@7.0.3 has black corners and the transparent effect does not fit correctly. I had to change the Capacitor keyboard settings to overlay the keyboard instead of changing the viewport/body to keep the glass effect visible and account for the new rounded corners :white_check_mark:

Here are the changes I made to achieve this:
(If there is a better way to get the same result, please tell me how :slight_smile:).

// in capacitor.config.json
"Keyboard": {
	"resize": "none",
	"resizeOnFullScreen": false
}

// in app.component.ts
Keyboard.addListener('keyboardWillShow', info => {
	const height = info.keyboardHeight;
	const contents = document.querySelectorAll('ion-content');

	contents.forEach(content => {
		const scrollEl = content.shadowRoot?.querySelector('.inner-scroll') as HTMLElement | null;
		if (scrollEl) {
			scrollEl.style.paddingBottom = `${height}px`;
		}
	});
});
Keyboard.addListener('keyboardWillHide', () => {
	const contents = document.querySelectorAll('ion-content');

	contents.forEach(content => {
		const scrollEl = content.shadowRoot?.querySelector('.inner-scroll') as HTMLElement | null;
		if (scrollEl) {
			scrollEl.style.paddingBottom = `0px`;
		}
	});
});

  1. The presentingElement setting seems incompatible with the ModalController. In fact, when the modal opens, there is no stacking effect anymore.
    Is there a way to keep the stacking render or should I adapt to use a basic modal?

There may be other changes that are not compatible with iOS 19. Do you have any feedbacks on this?

Thanks for your help,
Loïc

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71389

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>