Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 196
  1. Many standard SwiftUI views include accessibility support out of the box.

  2. As a test suite grows, we often end up writing multiple test functions that exercise the same behavior with slightly different inputs.

  3. Building responsive and reliable search in SwiftUI

    When building a search feature, we usually want results to update as the user types.

  4. Getting started with Live Activities in SwiftUI

    Live Activities let users follow an ongoing event without repeatedly opening our app.

  5. Managing toolbar visibility and overflow in SwiftUI

    When a SwiftUI toolbar contains more actions than the available space can hold, the system decides which items remain visible and which ones move into the overflow menu.

  6. One possibility to control SwiftUI alerts and confirmation dialogs is with a Boolean binding.

  7. Adding swipe actions to any SwiftUI scroll view

    Until iOS 27, SwiftUI's swipeActions modifier worked with rows inside a List.

  8. Managing focus in SwiftUI with FocusState

    SwiftUI provides the @FocusState property wrapper to observe and control focus in a view hierarchy.

  9. Building a reusable API client with URLSession in Swift

    URLSession is the foundation framework for loading data over the network in Swift.

  10. Understanding code signing and provisioning in iOS

    When building an iOS app, we eventually need to run it on a real device, send it to testers, or distribute it through the App Store.

  11. Building widgets with WidgetKit and SwiftUI

    Widgets give users a lightweight way to see useful information from an app without opening it first.

  12. Keeping SwiftData behind a boundary

    SwiftData integrates naturally with SwiftUI.

  13. Understanding Sendable in Swift

    When working with Swift concurrency, we often pass values between tasks, actors, and async functions.

  14. Understanding privacy manifests in iOS

    Many iOS apps include third-party dependencies, such as analytics SDKs, networking libraries or crash reporting tools.

  15. Getting started with Apple's Foundation Models framework

    Apple's Foundation Models framework gives us access to language models directly through a native Swift API.

  16. Async cleanup with defer in Swift

    Swift's defer statement is useful for cleanup logic.

  17. Understanding composition in SwiftUI

    When working with SwiftUI, we constantly compose views from other views.

  18. Registering for push notifications in SwiftUI

    Push notifications allow us to inform users about updates even when they are not actively using the app.

  19. Working with the Keychain in iOS

    When developing iOS apps, we often need to persist sensitive user data such as passwords, authentication tokens, or cryptographic keys.

  20. Understanding basic animations in SwiftUI

    SwiftUI provides built-in support for animations.

  21. How to present a local HTML file in SwiftUI

    When developing iOS apps, we sometimes need to display a locally stored HTML file, for example static help pages, terms and conditions, or release notes bundled with the app.

  22. How to implement pagination with SwiftUI's List view

    When working with larger datasets, loading everything at once is often unnecessary.

  23. Building a draggable bottom sheet in SwiftUI

    Some apps, such as Apple Maps or Google Maps, use a draggable bottom sheet to let users switch between the main content, for example a map, and additional information presented in a sheet.

  24. How to test in-app purchases locally using StoreKit

    When working with in-app purchases, testing different purchase scenarios is an important part of development.

  25. Working with files and directories in iOS

    When developing an iOS app, we often need to persist data that doesn't naturally fit into a database or UserDefaults.

  26. Changing runtime state with LLDB while debugging iOS apps

    When developing an iOS app, we often need to bring the app into a very specific state, for example when reproducing bugs or testing edge cases.

  27. Migrating to String Catalogs in iOS

    Many existing iOS projects still rely on Localizable.strings and Localizable.stringsdict files for localization.

  28. Working with String Catalogs in iOS projects

    Localization is an essential part of many iOS apps.

  29. Swift's Codable protocol makes it straightforward to convert JSON data into native Swift types and vice versa.

  30. Implementing Passkeys in iOS with AuthenticationServices

    Passkeys are credentials built to eliminate security problems like weak or reused passwords, credential leaks and phishing attacks.

  31. When working with persistence in iOS apps, schema changes are inevitable.

  32. How to build a simple CLI tool using Swift

    When working on iOS projects, we often need small automation tools.

  33. How to use SwiftUI Coordinators to communicate with UIKit

    When building SwiftUI apps, we sometimes still need UIKit.

  34. Migrating to the Observation framework in SwiftUI

    SwiftUI's current state-of-the-art approach to state observation is the Observation framework.

  35. A visual cheat sheet of Combine operators

    This article provides a visual cheat sheet of common Combine operators, with a diagram for each one to illustrate how values flow through a pipeline.

  36. How to use String Catalogs for pluralization in Swift

    String Catalogs provide a type-safe way to handle plural forms across languages.

  37. Memory management in Combine

    Combine allows us to model asynchronous workflows declaratively.

  38. Storing Swift structs in UserDefaults

    UserDefaults is often the first place we reach for when we want to persist small pieces of data.

  39. Working with JSON in Swift is usually straightforward.

  40. Understanding SwiftUI's Grid container

    SwiftUI's Grid gives us a way to build two-dimensional layouts without using nested HStack/VStack combinations.

  41. Interactive notifications let users take action without opening the app.

  42. Swift's concurrency system gives us a clean, readable way to express asynchronous work using async/await and tasks.

  43. Understanding associated domains in iOS

    Associated domains create a secure, system-managed connection between an iOS app and its matching website, allowing us to support features like universal links, shared web credentials with password auto fill or app clips.

  44. When working with associated domains, for example to support universal links, shared web credentials, or App Clips, iOS fetches the apple-app-site-association (AASA) file through Apple's CDN, not directly from the server where the file is hosted.

  45. Bridging completion handlers to Swift's async/await

    Before Swift introduced structured concurrency and async/await, most asynchronous APIs in iOS used completion handlers.

  46. Transforming AsyncStream with Swift Async Algorithms

    When we explored how we can use AsyncStream to implement reactive-style listening patterns, we also talked about one of its limitations: Swift's standard library doesn’t include many operators for transforming or combining asynchronous values.

  47. Understanding Task and Task.detached in Swift concurrency

    When we explored structured and unstructured tasks, we saw a small example of using Task {} vs.

  48. Swift's concurrency system gives us different ways to create and manage asynchronous work: some tasks are automatically tied to a scope, while others run independently.

  49. Comparing Combine's subjects with AsyncStream in Swift

    Combine's subjects such as PassthroughSubject or CurrentValueSubject have long been the go-to way to implement reactive observer patterns across an app.

  50. Since iOS 18, buttons, toolbars, and other controls can appear in Apple's new glass button style.