---
title: "This Hidden SwiftUI Feature Will Save You Time"
url: https://daily.dev/posts/this-hidden-swiftui-feature-will-save-you-time-jsipv3bg4
source_url: https://www.youtube.com/watch?v=nKA4kt43lKw
type: video:youtube
source: "Rebeloper"
published: 2026-06-14T12:34:03.418Z
updated: 2026-06-14T12:34:20.515Z
tags: ["swiftui"]
reading_time: 2
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# This Hidden SwiftUI Feature Will Save You Time

**[Rebeloper](https://daily.dev/sources/rebeloper)** · 2 min read · 0 upvotes · 0 comments

## Summary

SwiftUI's @Entry macro (available in iOS 17+) simplifies custom environment values by eliminating the need to manually define an EnvironmentKey. Instead of creating a separate key type and conforming to EnvironmentKey, you can extend EnvironmentValues directly using @Entry to declare your custom property in a single, concise step. The tutorial demonstrates this by refactoring a feature-flag-based environment setup from the verbose EnvironmentKey approach to the cleaner @Entry macro syntax.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=nKA4kt43lKw>

---

Tags: [#swiftui](https://daily.dev/tags/swiftui)

[View this post on daily.dev](https://daily.dev/posts/this-hidden-swiftui-feature-will-save-you-time-jsipv3bg4)
