<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Simplifying Data Flow and Improving Performance in SwiftUI with Observation	</title>
	<atom:link href="https://www.swiftyplace.com/blog/swiftui-observation/feed" rel="self" type="application/rss+xml" />
	<link>https://www.swiftyplace.com/blog/swiftui-observation?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=swiftui-observation</link>
	<description>Learn how to build amazing apps with SwiftUI and Combine</description>
	<lastBuildDate>Fri, 05 Apr 2024 14:57:39 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>
		By: Mapet		</title>
		<link>https://www.swiftyplace.com/blog/swiftui-observation#comment-358</link>

		<dc:creator><![CDATA[Mapet]]></dc:creator>
		<pubDate>Fri, 05 Apr 2024 14:57:39 +0000</pubDate>
		<guid isPermaLink="false">https://swiftyplace.com/?p=293#comment-358</guid>

					<description><![CDATA[You don&#039;t need to import the Observation framework as it comes with SwiftUI]]></description>
			<content:encoded><![CDATA[<p>You don&#8217;t need to import the Observation framework as it comes with SwiftUI</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Murad		</title>
		<link>https://www.swiftyplace.com/blog/swiftui-observation#comment-95</link>

		<dc:creator><![CDATA[Murad]]></dc:creator>
		<pubDate>Sun, 04 Feb 2024 09:11:22 +0000</pubDate>
		<guid isPermaLink="false">https://swiftyplace.com/?p=293#comment-95</guid>

					<description><![CDATA[And I have a question: If I want to fully adopt the new Observation framework by embracing State, Bindable and Environment wrappers and discard all other property wrappers (like Binding, although I can still use them as they&#039;re not deprecated yet), how do I migrate the following view to the Observation framework in order to be able to do changes  on an array of Bindable objects:

```
struct MyView: View {
    @Binding var books: [Book]
    
    var body: some View {
        Button(&quot;Add Book&quot;) {
            books.append(Book())
        }
    }
}
```
I couldn&#039;t find a way to add a book to the array without @Binding property wrapper.]]></description>
			<content:encoded><![CDATA[<p>And I have a question: If I want to fully adopt the new Observation framework by embracing State, Bindable and Environment wrappers and discard all other property wrappers (like Binding, although I can still use them as they&#8217;re not deprecated yet), how do I migrate the following view to the Observation framework in order to be able to do changes  on an array of Bindable objects:</p>
<p>&#8220;`<br />
struct MyView: View {<br />
    @Binding var books: [Book]</p>
<p>    var body: some View {<br />
        Button(&#8220;Add Book&#8221;) {<br />
            books.append(Book())<br />
        }<br />
    }<br />
}<br />
&#8220;`<br />
I couldn&#8217;t find a way to add a book to the array without @Binding property wrapper.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Murad		</title>
		<link>https://www.swiftyplace.com/blog/swiftui-observation#comment-94</link>

		<dc:creator><![CDATA[Murad]]></dc:creator>
		<pubDate>Sun, 04 Feb 2024 08:15:43 +0000</pubDate>
		<guid isPermaLink="false">https://swiftyplace.com/?p=293#comment-94</guid>

					<description><![CDATA[Thanks for the cool article, however, I believe that you don&#039;t need to mark the Library model with @Observable as long as its properties are @Observable.]]></description>
			<content:encoded><![CDATA[<p>Thanks for the cool article, however, I believe that you don&#8217;t need to mark the Library model with @Observable as long as its properties are @Observable.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: www.swiftyplace.com @ 2026-07-26 03:17:59 by W3 Total Cache
-->