Testing Swift Code With Parameterized Tests and Traits
Learn how to use Swift Testing parameterized tests and traits to cover multiple inputs, validation rules, and test execution behavior with less duplicated code.
Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Learn how to use Swift Testing parameterized tests and traits to cover multiple inputs, validation rules, and test execution behavior with less duplicated code.
Explore how AI is transforming iOS & macOS development! Discover on-device AI, Core ML, and AI-powered tools shaping the future of Apple app creation.
Everything on Swift, not only its articles: the Swift page →
Learn how to efficiently fetch data from APIs using JavaScript's `fetch` and `async/await`. Master data retrieval for dynamic web applications. #JavaScript #API
Swift is a modern, high-performance programming language developed by Apple for building applications across iOS, macOS, watchOS, and beyond. It combines safety, speed, and expressiveness, making it a preferred choice for developers targeting Apple platforms.
Yes, you can embed a game into a SwiftUI app using SpriteKit, SceneKit, or Unity. Learn how to integrate games into existing iOS projects, including code examples, pros, and common pitfalls.
Learn the key differences between SpriteKit, SceneKit, Metal, and Unity for creating iOS games in Swift. Compare performance, ease of use, and best use cases to choose the right game engine.
Learn the key differences between structs and classes in Swift. Understand memory behavior, identity, mutability, and when to use each with real examples, protocol usage, and best practices for clean code.
SwiftUI makes building UIs easier — until you hit state management. With so many property wrappers like @State, @Binding, @ObservedObject, and @EnvironmentObject, it's easy to get confused. If you've ever wondered when to use what, you're not alone. Let’s simplify it with clear explanations and real examples.
Swift 6.2 introduces a range of enhancements and new features, primarily focusing on improving concurrency and data race safety, while also enhancing performance optimizations.
Combine framework enhances SwiftUI by managing data flow, essential for reactive UIs. Publishers emit data, subscribers receive, and operators transform streams. Learn to create publishers, subscribe within views, use operators, and apply advanced techniques like error handling and cancellation.
SwiftUI provides a powerful and declarative method for creating user interfaces. Nonetheless, effectively managing application state is essential for developing maintainable and responsive applications.
Property Wrappers, a potent and flexible addition unveiled in Swift 5.1, enable the creation of custom property wrappers within SwiftUI, offering substantial versatility.
Swift 5.10 focuses on improving concurrency features with stricter data race checks. Swift 5.10 enhances concurrency safety by enforcing data isolation and preventing data races. Actors and tasks ensure exclusive access to a shared state.
This article is about what are the top interview questions you can prepare for interview. Mastering iOS development involves a deep dive into Swift, app architecture, UIKit, networking, data management, debugging, and optimization for interview success.
Learn the key practices for writing unit tests for SwiftUI views in iOS and macOS apps. This guide covers project setup, effective testing methods, and leveraging SwiftUI's testing framework. With code examples and best practices, ensure your views' reliability and maintainability through thorough unit testing.
Learn how to implement a dynamic search bar in SwiftUI for iOS apps. Discover the SwiftUI TextField component to capture user input, integrate it with SwiftUI navigation, and utilize the Combine framework for data filtering.
In this article you will learn optimal techniques for ensuring your app stays updated and responsive through the background refresh.
In this article, we will fetch and display data on a list using SwiftUI. Learn to fetch and display data in a list using SwiftUI. Set up a SwiftUI project in Xcode, create a struct conforming to Codable and Identifiable protocols, fetch data using URLSession, and design the UI.
This article contains a simple demo of creating Tab View in SwiftUI. Learn how to create a Tab View using SwiftUI in this tutorial. Follow step-by-step instructions to integrate tabs like Home, Favorites, Orders, and Settings into your SwiftUI project for streamlined navigation and enhanced UI customization.
In this article, we will learn to fetch data from nested JSON in API using URLSession in Swift programming language.
This article contains a simple demo of navigation in Swift. Learn SwiftUI navigation with this step-by-step guide. Create a SwiftUI project, add NavigationLinks, and enhance the UI with Lists for smoother screen transitions. Happy coding!
This article describes SwiftUI as a user interface toolkit that enables developers to create visually appealing apps across various Apple platforms with minimal coding. SwiftUI's compatibility with UIKit and AppKit allows for a smooth transition for developers already familiar with these frameworks.
This article contains simple demo on how to fetch data from API using URLSession in Swift Programming Language.
This Swift tutorial demonstrates creating a photo library access request, implementing a UIImageView, and handling image selection.
In this article we are going to learn how we can create floating textfield in swiftUI.
Uncover the step-by-step process of implementing Server-Driven UI in SwiftUI with this comprehensive guide. Learn how to seamlessly integrate server-driven data into your SwiftUI app, leveraging its declarative syntax and data binding capabilities.
Discover the seamless integration of Metal API in SwiftUI, Apple's revolutionary UI framework. This article takes you on a journey through the basics, showcasing how to embed Metal rendering into SwiftUI views. Delve into the world of Metal shaders, explore advanced graphics with custom rendering pipelines, texture mapping, and post-processing effects.
Discover the power of SwiftUI with our in-depth article that covers 15 essential features every Swift developer should master. From the elegance of declarative syntax to the real-time magic of live preview in Xcode, this guide takes you through the fundamentals and advanced capabilities of SwiftUI.
Discover the key steps to build inclusive SwiftUI apps in "How to Create Inclusive Apps with SwiftUI Accessibility." From VoiceOver support to dynamic type and custom actions, this guide empowers developers to enhance accessibility and create user-friendly apps for everyone. Elevate your SwiftUI skills and contribute to a more inclusive digital experience.
In iOS 17, Apple introduces significant updates and delivers numerous highly anticipated features, including advanced scroll view effects, container relative sizing, and even Metal shaders.
Write an article and earn +1,000 SHARP when it is approved.
Write an article