I filed a Feedback and Apple fixed my problem!
...months after they told me it wasn't a problem, closing my feedback internally and preventing me from continuing the dialogue.

I filed a Feedback and Apple fixed my problem!
...months after they told me it wasn't a problem, closing my feedback internally and preventing me from continuing the dialogue.
Getting Started: macOS Apps with SwiftUI http://leanpub.com/courses/leanpub/macos-apps-with-swiftui by Grace Huang is the featured online course on the Leanpub homepage! https://leanpub.com #macOS #programming #SwiftUI
sure enough if I delay for a half second before triggering the print the markers are back.
That's awful.
More fun printing MKMapViews…
If I call my method to print the map from a toolbar on the view things work as expected.
If I trigger a call to the same method from a menu command I lose the markers in the print.
You can clearly see the screen redraw when the menu command is selected. I assume the image is generated so quickly that the markers are not redrawn yet .
The toolbar button does not cause a redraw
Sigh.
Обзор Copilot в Xcode на SwiftUI
Вот я и добралась до Copilot (знаю, поздно, всё руки не доходили установить). Было жутко интересно, чем конкретно он мне может помочь в написании кода. Так что, ХаброКотаны, кому интересно, приглашаю вас почитать дальше. P.S. Обложку, кстати, сделал гпт в стиле гибли из моей фоточки.
Really happy with how this little #SwiftUI flippy animation turned out!
New version of Substage is out now! https://selkie.design/substage/
#Xcode #SwiftUI #iosDev #MacOSDev
if my description of the code causing the problem is unclear, here is an example:
Preview {
guard let foo = SomeOptionalThing() else {
return Text(“Oops”)
}
return MyActualView()
.environment(foo)
}
its the branching that's the issue. A ViewBuilder might work around this but you can't use one directly in the Preview.
Worked fine until latest updates. I am in a MacOS app project if that matters
If you have any previews in your #Xcode projects that are using the `return someView{}` syntax the latest update will return an error for this.
The error is that you are not returning a `some SwiftUI.View` type regardless if the view you are returning is in fact a SwiftUI.View.
I've not refactored my code around this yet but if you have this sort of pattern you may want to hold off on updating
QuickSearch 0.4 is out! This is a #SwiftUI SDK that lets you type into a .searchable text field by just typing, without first having to focus on the text field. It's good for content-based views without any other text fields.
https://github.com/danielsaidi/QuickSearch
Just moved over from mastodon.design, so it's time for another #introduction!
I'm Toni
I’m a software designer, though I’m spending more and more time writing code, mostly in #swiftui and #react
When I'm not heads down at work, you'll catch me #cycling, eating my weight in oranges, walking with my #schnauzer named Xenon, or just getting lost in a new #book, #anime, or #manga.
I’m also a passionate #yugioh collector, #nba fan and I play #guitar occasionally.
PrintingKit 0.7 is out! This is an open-source #Swift & #SwiftUI SDK that lets you print images, texts, attributed strings, PDF, and SwiftUI views directly from your app. This new version simplifies the library and adds support for printing images & views with less work.
https://github.com/danielsaidi/PrintingKit
I often see SwiftUI examples using + to combine Text views and style individual segments. While this works, it has limitations with localized text. I wrote a post discussing why text interpolation is often a better choice in these situations: https://nilcoalescing.com/blog/TextConcatenationVsTextInterpolationInSwiftUI/
#SwiftUI #iOSDev
I’ve reached the point in my day where I’m ready to formally declare that #SwiftUI is a hate crime.
How the %&@$! is it so brutally painful to try to get something as basic as “draw a border on one side of a view” to work‽‽‽
Fun times. My macOS app runs fine on Sequoia but not on Ventura (I'd like to support every OS version Apple still supports). I do have "if #available" checking for some newer SwiftUI functionality, but apparently Xcode didn't catch everything?
Guess I need to set up some test VMs.
OnboardingKit is updated with a new icon. This is a #Swift and #SwiftUI SDK for creating onboarding experiences, that I created many years ago. While TipKit is great, and will most probably replace many parts in this library, it comes with predefined onboarding types and also has nice page flows and slideshows.
https://github.com/danielsaidi/OnboardingKit