* Fix custom titles covering the toolbar after a cancelled swipe back On iOS 26 and 27, cancelling the interactive pop gesture leaves a custom navigation title view (e.g. the room header) at its full width, so it covers the trailing toolbar buttons until the screen is left. UIKit restores the title's container but never lays the title out inside it again. Work around it by observing both pop gestures and laying out the title view's container again when the pop is cancelled. It's only applied on iOS 26+ and marked with a TODO to remove once Apple fixes the bug. * Make singletons a last resort in AGENTS.md Add a Dependency Injection rule: use a shared singleton only as a last resort. * Apply the cancelled swipe back title fix only to room header screens Review feedback: hooking every navigation stack does more introspection than needed. The bug only shows up when RoomHeaderView is the title, so move the workaround next to it and apply it to the 4 screens that use it: room, thread, space and join room (knocked). Checked on the simulator: with the fix removed, a cancelled swipe back leaves the title too wide on the room, thread and join room screens; with the fix applied, the room, thread, join room and space titles stay truncated. Re-record the SpaceScreen preview snapshots. Wrapping that screen in any if/else changes how the snapshot test renders it, even when the workaround itself doesn't run. The app isn't affected.
Element X iOS
Element X iOS is the next-generation Matrix client provided by Element.
Compared to the previous-generation Element Classic, it is a total rewrite using the Matrix Rust SDK underneath and targeting devices running iOS 18+.
Rust SDK
Element X leverages the Matrix Rust SDK through an FFI layer exposed as a swift package that the final client can directly import and use. We're doing this as a way to share code between platforms, with Element X Android using the same SDK.
Status
This project is actively developed and supported. New users are recommended to use Element X instead of the previous-generation app.
Contributing
Please see our contribution guide.
Come chat with the community in the dedicated Matrix room.
Build instructions
Please refer to the setting up a development environment section from the contribution guide.
Support
When you are experiencing an issue on Element X iOS, please first search in GitHub issues and then in #element-x-ios:matrix.org. If after your research you still have a question, ask at #element-x-ios:matrix.org. Otherwise feel free to create a GitHub issue if you encounter a bug or a crash, by explaining clearly in detail what happened. You can also perform bug reporting (Rageshake) from the Element application by going to the application settings. This is especially recommended when you encounter a crash.
Forking
Please read our forking guide.
Copyright & License
Copyright (c) 2025 - 2026 Element Creations Ltd. Copyright (c) 2022 - 2025 New Vector Ltd.
This software is dual licensed by Element Creations Ltd (Element). It can be used either:
(1) for free under the terms of the GNU Affero General Public License (as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version); OR
(2) under the terms of a paid-for Element Commercial License agreement between you and Element (the terms of which may vary depending on what you and Element have agreed to).
Unless required by applicable law or agreed to in writing, software distributed under the Licenses is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licenses for the specific language governing permissions and limitations under the Licenses.