Skip to content

Should fix bottom inset - #26

Merged
nkmrh merged 1 commit into
masterfrom
fix-94298
Oct 14, 2025
Merged

nkmrh merged 1 commit into
masterfrom
fix-94298

Conversation

@nkmrh

@nkmrh nkmrh commented Oct 7, 2025

Copy link
Copy Markdown

issue: https://github.com/quipper/aya-issues/issues/94298

iOS 26 で keyboardEndFrameInScreenCoords が Empty の場合にレイアウト崩れが発生していたため、Empty の場合は無視するように変更しました

@nkmrh nkmrh assigned nkmrh and komaji Oct 7, 2025
guard let keyboardEndFrameInScreenCoords = notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect else { return }

// On iOS 26 and later, keyboard notifications may be sent with an empty frame when the keyboard is dismissed.
if #available(iOS 26, *), keyboardEndFrameInScreenCoords.isEmpty {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS 26 の場合のみ、keyboardEndFrameInScreenCoords が 0 の通知が飛んできており、それによって Inset が0となってしまいレイアウトが崩れていました。
0の通知を無視することで正しい通知のみが適用されて、レイアウトが崩れなくなります。

@komaji
komaji marked this pull request as ready for review October 7, 2025 07:25
@manicmaniac

Copy link
Copy Markdown
Member

CI 回らなくても大丈夫です (直すの大変と思われる)。

@elliekwon elliekwon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀🚀

@nkmrh
nkmrh changed the base branch from build-example-project to master October 14, 2025 05:02
@nkmrh
nkmrh merged commit 14cfb28 into master Oct 14, 2025
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants