Skip to content

Conversation

nkmrh
Copy link

@nkmrh nkmrh commented Oct 7, 2025

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

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
Member

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

Copy link

@elliekwon elliekwon left a comment

Choose a reason for hiding this comment

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

🚀🚀

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