MuseumShuffle, to SwiftUI
@MuseumShuffle@mastodon.social avatar

Oh gross. My app has a sheet that can display a .confirmationDialog. In full screen mode the confirmation dialog is showing some weird behavior.

The worst is this variation where there's no message and only one of the buttons is partially visible.

The simulator for an 11" shows similar, but less weird behavior.

MuseumShuffle,
@MuseumShuffle@mastodon.social avatar

I can somewhat recreate it with a sample project.

1/3 split view and 1/2 split view show the message, cancel button, and action button. 2/3 split view and full screen do not show cancel button.

An alert instead of a confirmationDialog works fine in all scenarios.

I'll file feedback later.

StewartLynch, to SwiftUI
@StewartLynch@iosdev.space avatar

I have come across something with the Observation framework that is confusing me so if there are any Observation framework experts out there that can explain this to me, I would be forever grateful. Why I don’t have to define the object as a State object?

video/mp4

omarthamri, to SwiftUI
@omarthamri@iosdev.space avatar

@swiftui @swift Exciting News! 🎉 Just dropped Part 33 of my "Let's Build WhatsApp clone Using SwiftUI and “firebase” playlist! 📺🛠️ Dive deeper into Swift development as we take our app to the next level. 🚀 Check it out now and let's code together! 🔗 https://www.youtube.com/watch?v=GV1NH7-XbVM

davidbures, to swift
@davidbures@mstdn.social avatar

Update on Cork Shortcuts support:

I have added a shortcut for refreshing packages. Next step, I'll see if I can add a separate button to Cork itself for only refreshing packages without updating them!

(also, does anyone know why Shortcuts is showing the key for each LocalizedStringResource instead of the actual string? 🤔 see pic #2 for code)

Image of code

StewartLynch, to SwiftUI
@StewartLynch@iosdev.space avatar

I am moving up my release schedule for my 7 part #SwiftUI #WeatherKit series. Here are the latest two in the series.
Make your app shine with dynamic backgrounds hourly forecast and an updated UI.

Video 3: https://youtu.be/oCJRZJ_Kb4s
Video 4: https://youtu.be/jgmkbRGgKxM

davidbures, to swift
@davidbures@mstdn.social avatar

Has anyone encountered this error before? I'm trying to test widgets, but the simulator doesn't start at all. I get no errors, not warnings, nothing in the console apart from the URL of the widget extension… it's weird. And Google is also not helping 🤔

Code is here: https://github.com/buresdv/Cork/tree/main.widgets/Widgets

davidbures, to swift
@davidbures@mstdn.social avatar

To recap what I got working today in Cork (but I'm not promising that it's gonna be in the next release!):

  • Added three Shortcuts: Get installed Formulae, Casks or all Packages
  • "Get installed Formulae" allows you go only limit it to only manually installed packages. For some reason, doing this in the "Get installed Packages" crashes it even though it's the same system

We'll see what's gonna be next!

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

image/jpeg

davidbures, to swift
@davidbures@mstdn.social avatar

I'm not promising anything for the next version of Cork just yet, but I'm trying to cook here…

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

JTostitos, to swift
@JTostitos@techhub.social avatar

Well, I wanted to use the App Store Connect API to download the CSV file of total payment for a particular month.

The API seems to only download what is provided from the create reports button (red box in image) which is not what I want; it doesn’t include a number of the total sales for a month once it has been paid. And adding each of the totals does not equal the correct payment amount.

The second image has an orange box that shows the accurate number. This is what the file looks like when using the download button in the green box in the first image.

Maybe I am using the API incorrectly? I am using this swift package: https://github.com/AvdLee/appstoreconnect-swift-sdk

#swift #swiftui #appstoreconnect

image/jpeg

wgrav, to mastodon

there really aren't that many good looking desktop clients sadly (outside of but then they all look more or less the same because of , not to say they don't look great)

MuseumShuffle, to SwiftUI
@MuseumShuffle@mastodon.social avatar

I just realized that if you're formatting to an abbreviated weekday then VoiceOver (at least Ava and Zoe Premium) will only fully pronounce some of the days.

I guess it's because the ones that aren't pronounced are actual words with other meanings? 🤔
Text(oneShowDay.formatted(.dateTime.weekday(.abbreviated)))

A simple app progressing through the abbreviated weekdays backwards starting with Friday.

JTostitos, to swift
@JTostitos@techhub.social avatar

Swift/SwiftUI Question: App Store Connect API provides a gzip when the response is successful for a particular endpoint I am accessing.

How do I take this gzip and save the contents of it to a files app / sandbox directory / swift data, so that I can read it and view the contents? From what I understand, gzip is similar to a zip file?

So far my attempts to save it to files to read the contents have failed. It says “Inappropriate file type or format”.

#swift #swiftlang #swiftui

davidbures, to swift
@davidbures@mstdn.social avatar

How would you go about implementing a popup search menu like this? :think_bread:

Suppose I have a NSSearchField and want to make such popup menu to let the user choose some details about their search - for example, if they want to search by a package's name or description.

Or would there be a more appropriate, and completely different, solution? What do you think?

#swift #swiftui #macdev

davidbures, to swift
@davidbures@mstdn.social avatar

Is there anyone out there who knows a lot about accessibility on macOS that would be open to joining Cork’s Testing team?

I wanted to improve the accessibility of Cork drastically in the next release (there’s no accessibility at all right now 😢), but I know nothing about this topic.

If you haven’t heard of Cork before, you can get a quick overview here: https://corkmac.app

bardi, to SwiftUI
@bardi@mas.to avatar

Why am I made to jump through excess hoops to simply set the caret position to the very beginning of text in a TextEditor 😭

CorkApp, to swift
@CorkApp@mstdn.social avatar
rafa, to SwiftUI
@rafa@mastodon.design avatar
gallaugher, to SwiftUI
@gallaugher@mastodon.world avatar

Back from sabbatical! More and content coming soon. Also info on how you can hire me to teach a bootcamp on these concepts or teach to faculty, leaving course material for use in their own classes. Feel free to share if you know educators who may be interested. https://youtu.be/DM8DUx1LkVg

ctietze, to SwiftUI
@ctietze@mastodon.social avatar

Does "flexibleSpace" in for macOS not work correctly?

Anything besides a Spacer() that's required in the item?

rafa, to SwiftUI
@rafa@mastodon.design avatar

My Safari window 10 minutes into development

rafa,
@rafa@mastodon.design avatar

Ok but for real, how does one make a ToolbarItem take the full width of the available Toolbar space? 💀

marcel, to SwiftUI
@marcel@mastodon.social avatar

I'm not sure whether I love or hate this micro toggle.

video/mp4

marcel,
@marcel@mastodon.social avatar

Yeah, this is better.

video/mp4

marcel,
@marcel@mastodon.social avatar

Do you know that feeling when you finally arrive at "OF COURSE it should be like that"? I'm there now. This here is the right solution.

teissler, to SwiftUI
@teissler@hachyderm.io avatar

WWDC24 is right around the corner. Before the excitement and rush of what's to come, I want to share some navigation fun facts and tips. None of this is new, having been discussed previously in sessions, etc. From talking with developers, these are parts of the system that are often overlooked, or forgotten about This is all running on macOS Sonoma 14.4, Xcode 15.3

teissler,
@teissler@hachyderm.io avatar
  1. The last in this mini-series of NavSplitView constructions: all of these different types of destinations can be mixed and used at once. Notice the new example below where I use .navigationDestination to root-replace the detail column. However, if you're mixing and matching, don't cross the streams! There lies undefined behavior. For example, don't have the type of the selection binding match the type of the data argument to navigationDestination

video/mp4

teissler,
@teissler@hachyderm.io avatar

4 cont) This is an especially pernicious Undefined Behavior example. Can anyone explain why this is undefined behavior, and perhaps guess at what’s going wrong for this to break down? (Answer tomorrow)

video/mp4

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • cubers
  • mdbf
  • everett
  • magazineikmin
  • Durango
  • Youngstown
  • rosin
  • slotface
  • modclub
  • kavyap
  • ethstaker
  • provamag3
  • ngwrru68w68
  • thenastyranch
  • cisconetworking
  • khanakhh
  • osvaldo12
  • InstantRegret
  • normalnudes
  • Leos
  • tacticalgear
  • tester
  • megavids
  • anitta
  • lostlight
  • All magazines