← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 196
  1. Dynamic colors in SwiftUI

    Dynamic colors allow our iOS app to automatically adapt its color scheme based on user preferences, such as light and dark mode.

  2. Understanding actors in Swift

    Concurrency is a complex problem when writing software, especially when dealing with shared mutable state across different threads.

  3. Extending optionals in Swift

    Optionals in Swift are a powerful feature that allows us to express the absence of a value.

  4. How to call async/await functions in SwiftUI

    In this article, we’ll explore different approaches to calling async/await functions in SwiftUI using tasks and view modifiers.

  5. Working with localized strings in SwiftUI can sometimes be confusing due to the variety of available approaches using LocalizedStringKey or NSLocalizedString.

  6. Getting started with async/await in Swift

    Swift's async/await syntax provides a clean and efficient way to handle asynchronous tasks.

  7. Understanding Substring and String indices in Swift

    Representing text values, Strings are one of the most common data structures we use when coding.

  8. How to set up and use Core Data with SwiftUI

    With SwiftData, Apple introduced a new state-of-the-art persistence framework for iOS.

  9. Introduction to supporting VoiceOver in SwiftUI

    Making an app accessible is crucial for ensuring that all users, including those with disabilities, can enjoy a seamless experience.

  10. Cheat sheet on VoiceOver gestures for iOS

    As we established in this VoiceOver guide for SwiftUI, the Accessibility Inspector is really helpful during development, but doesn't replace testing accessibility with VoiceOver on a real device.

  11. Swift optionals cheat sheet

    Swift's optionals are a powerful and fundamental feature that allows developers to write expressive, safe code by handling the absence of values gracefully.

  12. Understanding container values in SwiftUI

    In the last article on building custom containers in SwiftUI, we explored the fundamentals of creating reusable containers in SwiftUI.

  13. The @FetchRequest property wrapper in SwiftUI simplifies the process of fetching data from a Core Data store for use in a SwiftUI view.

  14. How to call async/await functions concurrently in Swift

    In Swift, when we call an asynchronous function using await, the function runs sequentially — meaning that each line of code waits for the previous one to complete before proceeding.

  15. How to create custom reusable container views in SwiftUI

    When building iOS apps with SwiftUI, we sometimes need to create a custom reusable container view which can be used as any other SwiftUI container view with any kind of content.

  16. As we learned in this guide on getting started with the Swift Package Manager for iOS, we can add public libraries to our iOS projects by using the Swift Package Manager.

  17. Get started with Swift Package Manager for iOS

    Provided by Apple, Swift Package Manager is a dependency manager for Swift projects which is directly integrated into Xcode.

  18. How to add local Swift Packages to an iOS project

    The Swift Package Manager not only supports adding public libraries as Swift Packages, but also local Swift Packages.

  19. The @Environment property wrapper in SwiftUI allows data sharing between views without explicitly passing the data down the view hierarchy.

  20. Search is a common feature in many applications.

  21. Backpressure in Combine

    When working with subscribers in Combine, we mostly use sink(receiveValue:) and assign(to:on:) to receive an unlimited amount of values from a publisher.

  22. Developer guide on Swift Testing for iOS

    At WWDC 2024, Apple released Swift Testing - a new framework which allows us to write automated tests for iOS applications.

  23. Developer guide on Swift Testing for iOS

    At WWDC 2024, Apple released Swift Testing - a new framework which allows us to write automated tests for iOS applications.

  24. This article summerizes the announcements for iOS at Apple's platforms state of the union talk at WWDC 2024.

  25. How to use NavigationPath for routing in SwiftUI

    With NavigationPath, SwiftUI provides a robust and flexible way to handle navigation and routing.

  26. Objective-C basics for Swift developers

    Objective-C, the primary language for iOS development before the release of Swift in 2014, remains an integral part of many legacy projects and Apple frameworks.

  27. How to create custom @Environment values in SwiftUI

    The @Environment property wrapper in SwiftUI allows us to share data between views without explicitly passing the data from view to view.

  28. Combine essentials in Swift - a quick guide

    Apple's Combine framework provides a native way to write functional reactive code in our iOS applications.

  29. How to combine SwiftUI and UIKit views in iOS

    With SwiftUI pushing UIKit into the background since 2019, UIKit may still be part of existing iOS applications.

  30. In this article, we'll look at how to localize plurals with Localizable.stringsdict files.

  31. How to solve problems with bitwise operators in Swift

    Knowing how to work with bitwise operators can become really useful when solving specific types of problems.

  32. To better separate and organize our code, we have the possibility to nest view controllers inside each other.

  33. GraphQL essentials for iOS development

    GraphQL is an API design paradigm which has emerged as an alternative to RESTful APIs.

  34. Using keyboard shortcuts is key of being productive and efficient when working with a development environment like Xcode.

  35. Knowing Xcode keyboard shortcuts is key to be more productive while developing iOS applications.

  36. If you are already exprerienced with RxSwift, switching to Combine will mostly be a matter of learning new namings for similar concepts.

  37. How to avoid using AnyView in SwiftUI

    SwiftUI provides the type-erased view AnyView that can be used as a wrapper for any other SwiftUI view, for example to be able to return multiple view types from a function.

  38. How to use Swift's logging API

    Logging is an essential aspect in software development, enabling developers to track and understand the behavior of their applications.

  39. Safe array subscription in Swift

    The possibility to use optionals in Swift allows us to write safe and expressive code.

  40. How to support dark mode in SwiftUI programmatically

    To add support for dark mode in an iOS application, Apple provides so called semantic colors which means they can have multiple values.

  41. How to use TipKit to create tool tips in SwiftUI

    At WWDC23, Apple introduced TipKit which allows us to show feature hints to the user with a few lines of code.

  42. How to delay an animation in SwiftUI

    When working with animations in SwiftUI, we sometimes need to delay an animation, for example when showing a UI element to users and then hiding it after a certain amount of time.

  43. How to define one-to-many relationships in SwiftData

    In this article, we will look at how to define one-to-many relationships in SwiftData.

  44. Getting started with Apollo iOS for GraphQL in Swift

    In this article on GraphQL essentials, we looked at what GraphQL is and how it differs from a REST approach.

  45. Get started with auto‑renewable subscriptions for iOS

    Apple provides 4 different types of in-app purchases that allow us to offer revenue generating content and features to users: Consumable for recurring purchases that users can consume.

  46. In the first part of Kotlin for Swift developers, we looked at the basics of Kotlin like variables, functions & control flow.

  47. How to store images in SwiftData

    SwiftData allows us to store images by using the Data type, for example: @Model class Recipe { var imageData: Data } When working with larger or many images, it might be a good idea to separate them from the model storage and store them in an external

  48. How to migrate to a new schema with SwiftData in iOS

    Whenever we release a new version of our app where we made changes to our SwiftData models, we need to make sure that SwiftData is able to migrate between the old and the new schema to prevent data loss.

  49. When setting up auto-renewable subscriptions for an iOS application with StoreKit 2, we might want to offer users a free trial period.

  50. At WWDC23, Apple introduced SwiftData - a framework which focuses on persisting data by using declarative code.