<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>focus &#8211; Frankis Website</title>
	<atom:link href="https://fpposchmann.de/tag/focus/feed/" rel="self" type="application/rss+xml" />
	<link>https://fpposchmann.de</link>
	<description>Consulting &#38; Software</description>
	<lastBuildDate>Thu, 26 Jan 2023 10:11:06 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>

<image>
	<url>https://fpposchmann.de/wp-content/uploads/2023/08/cropped-Bildschirmfoto-2023-08-07-um-14.23.35-32x32.png</url>
	<title>focus &#8211; Frankis Website</title>
	<link>https://fpposchmann.de</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>SwiftUI and the Problems of Timing</title>
		<link>https://fpposchmann.de/swiftui-and-the-problems-of-timing/</link>
					<comments>https://fpposchmann.de/swiftui-and-the-problems-of-timing/#respond</comments>
		
		<dc:creator><![CDATA[Frank-Peter Poschmann]]></dc:creator>
		<pubDate>Wed, 04 Jan 2023 10:02:48 +0000</pubDate>
				<category><![CDATA[Swift]]></category>
		<category><![CDATA[.onAppear]]></category>
		<category><![CDATA[delay]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[SwiftUI]]></category>
		<category><![CDATA[timing]]></category>
		<guid isPermaLink="false">https://fpposchmann.de/?p=762</guid>

					<description><![CDATA[Well, SwiftUI is certainly a big improvement on building maintainable, robust and nice user interfaces on iOS and macOS compared to the old MVC architecture (Massive View Controller) and the NIB (Next Interface Builder). But it is mainly a declarative framework and from the application developer’s point of view its sometimes hard to anticipate what is really going on behind the scenes and especially when its going to happen. There are situations where the promised behaviour doesn’t take place and I’ve already struggled hours for hours to look for a workaround.

Especially the .onAppear modifier seems to be problematic. It looks as if the supplied closure will be executed too early sometimes and the statements inside do net have the desired effect.]]></description>
		
					<wfw:commentRss>https://fpposchmann.de/swiftui-and-the-problems-of-timing/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Creating a macOS document based app with SwiftUI and the new App protocol</title>
		<link>https://fpposchmann.de/creating-a-macos-document-based-app-with-swiftui-and-the-new-app-protocol/</link>
					<comments>https://fpposchmann.de/creating-a-macos-document-based-app-with-swiftui-and-the-new-app-protocol/#comments</comments>
		
		<dc:creator><![CDATA[Frank-Peter Poschmann]]></dc:creator>
		<pubDate>Tue, 22 Jun 2021 14:46:51 +0000</pubDate>
				<category><![CDATA[Swift]]></category>
		<category><![CDATA[App protocol]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[macOS]]></category>
		<category><![CDATA[SwiftUI]]></category>
		<category><![CDATA[undo manager]]></category>
		<guid isPermaLink="false">https://www.fpposchmann.de/?p=640</guid>

					<description><![CDATA[Have you already tried to create a macOS document based app with SwiftUI and the new App protocol? Well, there are some problems to solve esp. if you want to use menus focused on the currently open document.

In the old app cycle with AppDelegate / SceneDelegate you still had to use the storyboard to define the menu items and link them to your methods in your document class derived from NSDocument. Enabling and disabling of the menu item according to the open documents was automatically managed by the frameworks.

That’s not the case in the new App protocol of SwiftUI anymore. Instead, you can define your menus and menu items quite nicely in your App struct conforming to the new App protocol but there is no automatic link to the current document in focus.]]></description>
		
					<wfw:commentRss>https://fpposchmann.de/creating-a-macos-document-based-app-with-swiftui-and-the-new-app-protocol/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
