Swift community already started bringing Swift to embedded platforms. Now memory-mapped IO library is being announced.
swift-mmio is designed to provide safe and secure APIs for fundamental low-level operations required in embedded firmware development, such as reading and writing memory-mapped registers. Drawing inspiration from mmio libraries in languages like C++ and Rust, swift-mmio focuses on improving the correctness of code interacting with MMIO.Rauhul Varma, Swift Forums
Library is available as Swift Package on GitHub.
Swift Forums: Introducing Swift MMIO