---
title: "You’re Probably Not Using SwiftUI @Entry Correctly"
url: https://daily.dev/posts/you-re-probably-not-using-swiftui-entry-correctly-3nbopmgfe
source_url: https://www.youtube.com/watch?v=0gTtWFDp18I
type: video:youtube
source: "Rebeloper"
published: 2026-06-13T17:30:22.638Z
updated: 2026-06-13T17:31:00.394Z
tags: ["swiftui"]
reading_time: 1
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.

# You’re Probably Not Using SwiftUI @Entry Correctly

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

## Summary

A tutorial walkthrough on using SwiftUI's @Entry macro and EnvironmentValues correctly, covering how to create an EnvironmentKey, extend EnvironmentValues with a getter and setter, and inject an observable object via key path rather than the object-based environment modifier.

## Full article

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

---

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

[View this post on daily.dev](https://daily.dev/posts/you-re-probably-not-using-swiftui-entry-correctly-3nbopmgfe)
