eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

196
active users

#swiftui

10 posts8 participants4 posts today
mirsadra<p>The ForEach view uses a closure with a parameter to represent each value from the data set you give it. </p><p>But how to read the closure?</p><p>You might read the syntax -- name in -- as “a name value coming into the closure.”</p><p><a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/Code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Code</span></a> <a href="https://mastodon.social/tags/Apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Apple</span></a> <a href="https://mastodon.social/tags/AppleDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AppleDev</span></a> <a href="https://mastodon.social/tags/Developers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Developers</span></a></p>
🇨🇦 Steve<p>Now that I've made a native Mac version of my SwiftUI app, what's involved in posting it to TestFlight? Do I switch targets and Archive again?</p><p>Sorry if this seems obvious, but I've seen no instructions on this and don't want to be redundantly building forever if that's what that means. <a href="https://appdot.net/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a></p>
mirsadra<p>Now that some people are using the Xcode beta version and talking about the Coding Assistant available, I'd like to share the official GitHub repository of Copilot written for Xcode. </p><p>If you're still using Xcode 16, this is absolutely for you!</p><p><a href="https://github.com/github/CopilotForXcode" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/github/CopilotForXc</span><span class="invisible">ode</span></a><br><a href="https://mastodon.social/tags/GitHub" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GitHub</span></a> <a href="https://mastodon.social/tags/Copilot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Copilot</span></a> <a href="https://mastodon.social/tags/Xcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Xcode</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/AppleDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AppleDev</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a></p>
mirsadra<p>A SwiftUI tip: When Xcode autocompletes Button(_ title:action:), it gives you Button(&lt;<a href="https://mastodon.social/tags/T" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>T</span></a>#<a href="https://mastodon.social/tags/title" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>title</span></a>: StringProtocol#<a href="https://mastodon.social/tags/StringProtocol" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StringProtocol</span></a>#&gt;, action: &lt;<a href="https://mastodon.social/tags/T" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>T</span></a>##() -&gt; Void#&gt;). </p><p>Fill in your title string, Tab to the action placeholder, then hit Return—it auto-formats to the trailing closure style most devs prefer:</p><p>```<br>Button("Your Title") {<br> &lt;<a href="https://mastodon.social/tags/code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>code</span></a>#&gt;<br>}<br>```</p><p>Saves time fiddling with syntax! <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a> <a href="https://mastodon.social/tags/Apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Apple</span></a> <a href="https://mastodon.social/tags/AppleDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AppleDev</span></a> <a href="https://mastodon.social/tags/Xcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Xcode</span></a> <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a></p>
mirsadra<p>`numberOfPips` property is marked with the keyword `var`, which means you can assign new values to it. This view is dynamic; you’ll change the value of the property when required.</p><p>When you assign a default value to a structure’s property, it’s not required in the initializer. </p><p><a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/Apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Apple</span></a> <a href="https://mastodon.social/tags/AppleDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AppleDev</span></a> <a href="https://mastodon.social/tags/Developers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Developers</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a></p>
Manuel Kehl<p>Hey everyone 👋 I'm excited to finally share what I've been working on since WWDC!</p><p>Daylish - a delightful day planner that combines calendars, alarms and timers in a unified timeline with smart "leave on time" routines that help you never be late again (an idea I've had for years but could only now realize with <a href="https://iosdev.space/tags/AlarmKit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AlarmKit</span></a> in <a href="https://iosdev.space/tags/iOS26" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOS26</span></a>)</p><p>It's almost ready for <a href="https://iosdev.space/tags/beta" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>beta</span></a> testing!</p><p>✈️ <a href="https://iosdev.space/tags/TestFlight" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TestFlight</span></a> waitlist: <a href="https://join.daylish.app" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">join.daylish.app</span><span class="invisible"></span></a></p><p>📣 Follow <span class="h-card" translate="no"><a href="https://mastodon.social/@DaylishApp" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>DaylishApp</span></a></span> for updates</p><p><a href="https://iosdev.space/tags/LiquidGlass" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LiquidGlass</span></a> <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/productivity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>productivity</span></a></p>
Joachim<p>Is there really no SearchField (or something like it) in <a href="https://hachyderm.io/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> outside of `.searchable`?</p><p>I want to have to have a search field that looks like an <a href="https://hachyderm.io/tags/Apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Apple</span></a> searchfield inside a custom view, but all I can find is .searchable, which shows the search in kind of a modal view, which is not what I want. :/</p>
Taylor Arndt<p>Looking to get started with Apple app development?<br>Our Apple App Development Class begins September 25. You’ll learn to build apps for iPhone, iPad, and Mac with SwiftUI.<br>The class is completely free and open to everyone. All materials are designed to help you quickly gain the skills you need to start building real apps.<br>Sign up here: <a href="https://classroom.google.com/c/Nzg3MTAwMjAwMjIy?cjc=6nhstavd" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">classroom.google.com/c/Nzg3MTA</span><span class="invisible">wMjAwMjIy?cjc=6nhstavd</span></a><br><a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a> <a href="https://iosdev.space/tags/AppDevelopment" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AppDevelopment</span></a> <a href="https://iosdev.space/tags/FreeLearning" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeLearning</span></a> <a href="https://iosdev.space/tags/LearnToCode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LearnToCode</span></a></p>
mirsadra<p>Haha, I know you know it’s a property of an instance! 😜 </p><p>"To declare a property, use the let keyword. A property has a name, followed by a colon and then the kind of data it holds. This property’s name is day, and it holds a String."</p><p>In <a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a>, kinds of data are called types. You can read the code you added to an structure like this: “day is a property whose type is String.” Or you could say, “day is a property of type String.”</p><p><a href="https://mastodon.social/tags/swiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftUI</span></a> <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/Xcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Xcode</span></a> <a href="https://mastodon.social/tags/iOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOS</span></a></p>
Axel Le Pennec<p>Want to have a sheet "zoom out" of toolbar buttons in iOS 26 instead of sliding up from the bottom of the screen?</p><p>Two <a href="https://iosdev.space/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> ways:</p><p>1. ZoomNavigationTransition (sheet content) + matchedTransitionSource (button)</p><p>2. .popover (button) + .presentationCompactAdaptation(.sheet)</p><p><a href="https://iosdev.space/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a></p>
Sam Clemente<p>New build of Routines is out, featuring smoother animations and a new progress bar!</p><p>Join the beta at: <a href="https://getroutines.app" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">getroutines.app</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/Apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Apple</span></a> <a href="https://mastodon.social/tags/Technology" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Technology</span></a> <a href="https://mastodon.social/tags/Beta" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Beta</span></a> <a href="https://mastodon.social/tags/Developer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Developer</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Coding</span></a> <a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BuildInPublic</span></a> <a href="https://mastodon.social/tags/iOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOS</span></a> <a href="https://mastodon.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftLang</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a></p>
Natalia Panferova<p>Corner concentricity was mentioned a lot at WWDC25, and now we finally have SwiftUI APIs for it. In my new post I explore how we can use the new ConcentricRectangle and containerShape() in iOS 26 to make our views fit perfectly within their containers: <a href="https://nilcoalescing.com/blog/ConcentricRectangleInSwiftUI/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">nilcoalescing.com/blog/Concent</span><span class="invisible">ricRectangleInSwiftUI/</span></a> <br><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a></p>
troz<p>As promised in my SwiftUI for Mac 2025 article, here is a more detailed article about SwiftUI's new WebView.</p><p><a href="https://troz.net/post/2025/swiftui-webview/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">troz.net/post/2025/swiftui-web</span><span class="invisible">view/</span></a></p><p>The SwiftUI team have done an amazing job on this, and I can't wait to start using it in my apps and books.</p><p><a href="https://mastodon.social/tags/Swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Swift</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/WebView" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebView</span></a></p>
Dave DeLong<p>This single API (and the associated ContainerValues) is the #1 most important addition to <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> in *years*. It makes building custom components that behave like system ones almost trivially easy. It is downright magical and I'm thrilled to finally rip out all of my old _VariadicView hacks:</p><p><a href="https://developer.apple.com/documentation/swiftui/group/init(subviews:transform:)" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.apple.com/documentat</span><span class="invisible">ion/swiftui/group/init(subviews:transform:)</span></a></p><p>A huge thanks to the SwiftUI team for making this public.</p>
Patrick McConnell<p>I can add a clipped() modifier but that does not cause the search field to hide/scroll away as it should.</p><p> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a></p>
Patrick McConnell<p>This issue may prevent me from shipping my update unless it resolves itself.</p><p>iOS 18 view scrolls behind the nav bar similar to iOS26 behavior. This should not happen.</p><p>Doesn't happen all the time but I am unable to refactor the issue away. One build has the problem and the next won’t with no changes to the code.</p><p>Any pointers to resolve this would be greatly appreciated. </p><p>The joys and uncertainties of beta tools.</p><p><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/iOSDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOSDev</span></a></p>
Cris :verified_coffee:<p>Updated introductory post:</p><p>Hiya! I'm Cris, a 40+ expat living in <a href="https://social.lol/tags/costarica" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>costarica</span></a>. My family moved here recently to escape the American nightmare hellscape. Struggling daily to learn Spanish and to function outside the US.</p><p>Married with 2 kids, 2 cats, and 2 dogs. I'm a knitter and gamer. I'm slowly teaching myself <a href="https://social.lol/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> in my spare time. Once I'm able to ship my bass from where it's stored in the US I’ll get back to learning that as well.</p><p>I play and run TTRPGs. Mostly D&amp;D 5e, but I'm always looking for opportunities to try out other games and systems. I prefer my video games solo and story-driven. I know I'm bad at them. I don't need any witnesses to that fact 😂</p><p>When I'm not gaming or working, I’m usually knitting while watching something scifi or horror. Trying my best to get out of the house and explore my new country, but the backlog is vast.</p><p>Topics of interest:<br><a href="https://social.lol/tags/tech" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tech</span></a><br><a href="https://social.lol/tags/apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>apple</span></a><br><a href="https://social.lol/tags/knitting" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>knitting</span></a><br><a href="https://social.lol/tags/gaming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gaming</span></a><br><a href="https://social.lol/tags/ttrpg" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ttrpg</span></a><br><a href="https://social.lol/tags/books" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>books</span></a><br><a href="https://social.lol/tags/writing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>writing</span></a><br><a href="https://social.lol/tags/SciFi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SciFi</span></a><br><a href="https://social.lol/tags/StarTrek" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>StarTrek</span></a><br><a href="https://social.lol/tags/coffee" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coffee</span></a></p><p><a href="https://social.lol/tags/introduction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>introduction</span></a></p>
Patrick McConnell<p>if iOS26 {<br> if iOSAppOnMac {<br> if fullMoon {<br> if notReconsideringCareerPath {<br> …</p><p><a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a></p>
Sam Clemente<p>And another update to Routines is out with some visual tweaks including this new gradient on the header!</p><p>Check it out at: <a href="https://getroutines.app" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">getroutines.app</span><span class="invisible"></span></a></p><p><a href="https://mastodon.social/tags/Apple" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Apple</span></a> <a href="https://mastodon.social/tags/Technology" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Technology</span></a> <a href="https://mastodon.social/tags/IndieApps" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>IndieApps</span></a> <a href="https://mastodon.social/tags/Developer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Developer</span></a> <a href="https://mastodon.social/tags/SwiftLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftLang</span></a> <a href="https://mastodon.social/tags/SwiftUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SwiftUI</span></a> <a href="https://mastodon.social/tags/BuildInPublic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BuildInPublic</span></a> <a href="https://mastodon.social/tags/iOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOS</span></a></p>
Dariusz Hałas<p><strong>Apple stworzyło AI, która&nbsp;sama uczy się programować. Imponujący wynik, mimo że&nbsp;na&nbsp;starcie prawie nie&nbsp;znała kodu</strong></p><p>Grupa badaczy z&nbsp;Apple i&nbsp;Carnegie Mellon University opublikowała pracę naukową, która&nbsp;może zwiastować rewolucję w&nbsp;sposobie, w&nbsp;jaki sztuczna inteligencja tworzy oprogramowanie.<br></p><p>Opisali w&nbsp;niej nowatorską metodę, dzięki której&nbsp;model AI, niemal od&nbsp;zera, nauczył się samodzielnie pisać wysokiej jakości, działający kod dla interfejsów użytkownika w&nbsp;języku SwiftUI. Wyniki są&nbsp;zdumiewające – stworzony w&nbsp;ten sposób model, nazwany UICoder, dorównuje, a&nbsp;w&nbsp;niektórych aspektach nawet przewyższa, giganta takiego jak GPT-4.</p><p><strong>Jak nauczyć AI programować interfejsy?</strong></p><p>Duże modele językowe (LLM) mają fundamentalny problem z&nbsp;generowaniem dobrego kodu dla interfejsów użytkownika (UI). Powód jest prosty: w&nbsp;ich gigantycznych zbiorach danych treningowych znajduje się bardzo mało wysokiej jakości, kompletnych przykładów takiego kodu. Zamiast szukać kolejnych przykładów lub polegać na&nbsp;drogim feedbacku od&nbsp;ludzi, badacze Apple postanowili, że&nbsp;AI nauczy się sama – metodą prób i&nbsp;błędów, z&nbsp;pomocą zautomatyzowanych recenzentów.</p><p>Proces wyglądał następująco:</p><ul><li>Punkt wyjścia: wybrano open-source’owy model AI wyspecjalizowany w&nbsp;kodowaniu, StarChat-Beta.</li><li>Generowanie: poproszono go&nbsp;o&nbsp;wygenerowanie ogromnej liczby (prawie miliona) programów w&nbsp;SwiftUI na&nbsp;podstawie tekstowych opisów interfejsów.</li><li>Automatyczna recenzja: każdy wygenerowany program przechodził przez&nbsp;surowy, trzystopniowy system oceny:<ul><li>Kompilator: czy&nbsp;kod w&nbsp;ogóle działa i&nbsp;się kompiluje? Jeśli nie&nbsp;– do&nbsp;kosza.</li><li>Model wizualny (CLIP): czy&nbsp;interfejs, który&nbsp;powstał po&nbsp;skompilowaniu kodu, faktycznie wygląda tak, jak w&nbsp;oryginalnym opisie? Jeśli nie&nbsp;– do&nbsp;kosza.</li><li>Filtr duplikatów: czy&nbsp;program nie&nbsp;jest zbyt podobny do&nbsp;tysięcy innych? Jeśli tak&nbsp;– do&nbsp;kosza, by&nbsp;uniknąć monotonii w&nbsp;danych.</li></ul></li><li>Trening na&nbsp;najlepszych: programy, które przetrwały tę&nbsp;selekcję, stworzyły nowy, elitarny zbiór danych, na&nbsp;którym&nbsp;ponownie trenowano (dostrajano) oryginalny model AI.</li><li>Powtórz: cały proces powtórzono pięć razy. Z&nbsp;każdą iteracją AI stawała się coraz lepsza, generując wyższej jakości kod, co&nbsp;z&nbsp;kolei tworzyło jeszcze lepszy zbiór danych do&nbsp;kolejnego treningu.</li></ul><p><strong>Lepszy od&nbsp;open-source, doganiający GPT-4</strong></p><p>Efektem tego procesu jest&nbsp;UICoder – model, który&nbsp;w&nbsp;testach zdeklasował inne otwarte modele do&nbsp;generowania kodu. Co&nbsp;więcej, w&nbsp;testach porównawczych zbliżył się do&nbsp;wyników potężnych, <a href="https://imagazine.pl/2025/08/07/gpt-5-co-warto-wiedziec-o-najnowszej-sztucznej-inteligencji-od-openai/" rel="nofollow noopener" target="_blank">zamkniętych modeli od&nbsp;OpenAI</a>.</p><blockquote><p><a href="https://imagazine.pl/2025/08/07/gpt-5-co-warto-wiedziec-o-najnowszej-sztucznej-inteligencji-od-openai/" rel="nofollow noopener" target="_blank">GPT-5 – co&nbsp;warto wiedzieć o&nbsp;najnowszej sztucznej inteligencji od&nbsp;OpenAI</a></p></blockquote><p></p><p>Wskaźnik generowania poprawnego, kompilującego się kodu dla modelu UICoder-Top (jedna z&nbsp;wersji) wyniósł 82%,&nbsp;przewyższając w&nbsp;tym zadaniu minimalnie GPT-4 (81%).</p><p><strong>Największa niespodzianka: uczył się niemal od&nbsp;zera</strong></p><p>Najbardziej fascynujący w&nbsp;całym eksperymencie jest fakt, który&nbsp;badacze odkryli niejako przy okazji. Okazało się, że&nbsp;bazowy model StarChat-Beta został wytrenowany na&nbsp;zbiorze danych, z&nbsp;którego&nbsp;przez pomyłkę (!) wykluczono repozytoria z&nbsp;kodem w&nbsp;języku Swift i&nbsp;SwiftUI. Oznacza to, że&nbsp;model, który&nbsp;zaczynał eksperyment, praktycznie nie&nbsp;widział wcześniej dobrego kodu w&nbsp;tym języku. Uczył się całkowicie od&nbsp;zera, wbrew pierwotnym zamiarom projektantów, którzy&nbsp;zakładali, że&nbsp;będzie to&nbsp;model wstępnie wytrenowany na&nbsp;zewnętrznych, wysokiej jakości danych.</p><p>Oznacza to, że&nbsp;UICoder nie&nbsp;nauczył się programować poprzez odtwarzanie tysięcy widzianych wcześniej przykładów, ale&nbsp;faktycznie „zrozumiał” zasady i&nbsp;logikę SwiftUI dzięki metodzie prób, błędów i&nbsp;automatycznej weryfikacji. To&nbsp;dowodzi niezwykłej skuteczności tej&nbsp;metody i&nbsp;sugeruje, że&nbsp;można ją&nbsp;z&nbsp;powodzeniem zastosować do&nbsp;nauki dowolnego innego języka programowania. Choć to&nbsp;na&nbsp;razie praca badawcza, daje ona niesamowity wgląd w&nbsp;to, jak Apple może w&nbsp;przyszłości tworzyć narzędzia AI, które zrewolucjonizują proces tworzenia aplikacji na&nbsp;jego platformy. Oczywiście jak zawsze dla zainteresowanych mam link do&nbsp;pełnej publikacji rzeczonej pracy „<a href="https://arxiv.org/html/2406.07739v1" rel="nofollow noopener" target="_blank"><em>UICoder: Finetuning Large Language Models to&nbsp;Generate User Interface Code through Automated Feedback</em></a>” umieszczonej na&nbsp;platformie arXiv.</p><p><a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/ai-si/" target="_blank">#AI</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/apple/" target="_blank">#Apple</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/badania/" target="_blank">#badania</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/deweloperzy/" target="_blank">#deweloperzy</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/llm/" target="_blank">#LLM</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/news/" target="_blank">#news</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/programowanie/" target="_blank">#programowanie</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/swiftui/" target="_blank">#SwiftUI</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/sztuczna-inteligencja/" target="_blank">#sztucznaInteligencja</a> <a rel="nofollow noopener" class="hashtag u-tag u-category" href="https://imagazine.pl/tag/uicoder/" target="_blank">#UICoder</a></p>