Récits du Front

Posts taggés avec “Swift”
décembre 16, 2025
building-native-ios-components-in-react-native/cover-image.png

This guide walks through how to build native iOS components for React Native using the older architecture. It explains when and why you might need to write native code, like when you need access to iOS-specific features, better performance, or existing native libraries. It also breaks down the differences between the old bridge-based approach and the newer JSI-based setup. Along the way, you’ll learn how to create native modules and UI components step by step, with clear examples in Objective-C and Swift. Important basics like common React Native macros and ways for JavaScript and native code to talk to each other—using callbacks, promises, and events—are covered in a straightforward way.

juillet 30, 2025
getting-started-with-swift-testing/CoverImage.png

Swift Testing, Apple’s modern replacement for the aging XCTest framework, offers iOS developers a more expressive and Swift-native way to write tests. Unlike XCTest’s verbose assertion methods and rigid naming conventions, Swift Testing brings elegant new macros like #expect and #require, powerful organizational features through traits and tags, built-in support for parameterized tests that run in parallel, and seamless async/await integration—all while maintaining the familiar structure developers know but with significantly cleaner, more readable code. This comprehensive guide will walk you through everything from basic setup to advanced features, helping you write better tests with more clarity.