@JetForMe@geekstodon.com
@JetForMe@geekstodon.com avatar

JetForMe

@JetForMe@geekstodon.com

I make stuff. Cal EECS grad. Los Angeles. Wrote MissionClock for iOS. Private/Instrument pilot. He/him.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

JetForMe, to SwiftUI
@JetForMe@geekstodon.com avatar

Anyone know how to make preview data for a SwiftData/SwiftUI app? I tried the SwiftDataFlashCardSample code from WWDC, but it doesn’t compile in Xcode1 5b1.

JetForMe, to SwiftUI
@JetForMe@geekstodon.com avatar

Shouldn't .onChange(of: scenePhase) on a WindowGroup work for a macOS app on macOS 14.1? Xcode tells you to write it just like that, but it's not working for me. It just doesn't get called.

#SwiftUI #SwiftUIIsSoBuggy #Swift #macOS

JetForMe, to Electronics
@JetForMe@geekstodon.com avatar

Months ago I made a makeshift bench light from some high-CRI LED strips and a driver I found on Amazon. Stuck it to a 1x4 and hung it from the ceiling.

Then I built a nice electronics workbench, but the crappy light stayed on.

Today I started building a replacement. The LEDs are inside diffuser channels, the rows are further apart, so the light should be more even and diffuse over the bench. I think it’ll be nice.

Have some before & WIP pics. Excuse the messy bench.

#Electronics #LedLighting #WIP

image/jpeg
image/jpeg
image/jpeg

JetForMe, to random
@JetForMe@geekstodon.com avatar

@mattiem I find myself wanting to write a little macOS app to help me write blog posts (which I do in Jekyll, although I plan to write my own in Swift someday, and will add that functionality to my blog post editor). To that end, I need a source code editor. I know you have some expertise in the area, and I wonder if you could give me a recommendation?

I'm looking for ease of integration in SwiftUI and that it be maintained. I'm not worried about working with huge files. And it doesn't have to render the output, I’ll do that separately.

ETA: I currently use MacDown to edit my articles, but I want to improve on that and more than anything make it easy to get my posts published online.

TIA!

JetForMe, to SwiftUI
@JetForMe@geekstodon.com avatar

There are some astonishingly dumb things in #SwiftUI. Why is my document type not allowed to have the file URL it represents? The view can have it, but not the document. This is so mind-boggling stupid, I can’t help but wonder what I'm missing.

JetForMe, to random
@JetForMe@geekstodon.com avatar

Did I see someone had a post about setting up your own Xcode CI/CD on local hardware, or was that just one of the hairbrained ideas I have that I don’t have time for?

I have an M1 Mini that doesn’t do much most of the time. It would be a much cheaper option than GitHub actions or Xcode Cloud, and I feel like it shouldn’t be that hard to set up decent automation with it.

JetForMe, to random
@JetForMe@geekstodon.com avatar

It is astonishing how varied and contradictory the vasectomy post-op instructions are, depending on the source.

JetForMe, to SwiftUI
@JetForMe@geekstodon.com avatar

Any SwiftUI layout experts out there? I want to make an app that displays a collection of views on a canvas and allows the user to drag-resize and drag-reposition the views on that canvas.

Ideally, I’d like to create the container view for this in a way that's generic, and reduces the amount of code a user of this container would have to implement. It should provide the drag gesture support, draw appropriate drag handles, and bind to size and position variables supplied by the caller.

I've kinda got a thing working using GeometryReader, but you can't really enumerate contained views to then wrap them.

I tried implementing a Layout, but it has even less access to the views.

Does anyone have any suggestion for how I might go about implementing this? This would be straightforward in Cocoa/UIKit.

#SwiftUI

JetForMe, to SwiftUI
@JetForMe@geekstodon.com avatar

#SwiftUI is amateur hour made difficult. That is, the provided views are generally only usable in simple cases, but its quirks and bugs make it challenging to actually get work done.

JetForMe, to random
@JetForMe@geekstodon.com avatar

@mastodonmigration while I appreciate the content of a lot of your posts, they’re not really on-topic for migration. Have to unfollow.

JetForMe, to macos
@JetForMe@geekstodon.com avatar

Is there a way to programmatically (from a Swift app) search through Mail messages? I use Mail.app. I think I should be able to search with Spotlight. I want to identify certain messages, then archive a copy.

#macOS #MacAdmins #MacAutomation #Swift

JetForMe, to random
@JetForMe@geekstodon.com avatar

@aallan I watched Adafruit try to determine what connectors the Raspberry Pi 5 uses today, and was sad to see there’s no documentation online describing the connector part numbers and mechanical positions. Can I assume those are forthcoming? Schematic, too? I see in the Pi 4 schematic, the connector part numbers aren't specified either. Would be super helpful to have that information! TIA!

#RaspberryPi5

JetForMe, to random
@JetForMe@geekstodon.com avatar

@ivory I think I would prefer separate quote and boost buttons. And they could all stand to have larger tap targets. TIA!

JetForMe, to random
@JetForMe@geekstodon.com avatar

@ivory is it possible to add a share service extension that will take a masto page open in Safari and open it in Ivory? Also, can you enhance search to search arbitrary text pasted in an ivory search field for a mastodon URL and then show that profile or post?

I wish the fediverse and browsers would implement this idea: https://jetforme.org/2023/01/a-better-scheme-for-fediverse/

JetForMe, to random
@JetForMe@geekstodon.com avatar

In @ivory , how do I set up a column to show me a set of hashtags?

JetForMe, to SwiftUI
@JetForMe@geekstodon.com avatar

Is there any way to disable autosave behavior in a SwiftUI document app (on macOS)? I want traditional (pre macOS 10.7) behavior, where the user has to explicitly choose Save, and gets prompted to save when closing a document.

@justkwin
#SwiftUI #macOS

JetForMe, to swift
@JetForMe@geekstodon.com avatar

Did SwiftData ModelContext.object(with:) change to registeredModel<T>(for persistentModelID: PersistentIdentifier)? The docs still say object(with:) can be used, but the interface file in Xcode 15b6 says otherwise. I can't find anything in the release notes.

#SwiftData #Xcode #Swift #FFS

JetForMe, to random
@JetForMe@geekstodon.com avatar

@twostraws you recently had a post about the six things one should check for accessibility. I can’t find that now. Also, is there a service that will evaluate my app for various types of accessibility?

JetForMe, to random
@JetForMe@geekstodon.com avatar

@ivory is there a way to not see my own boosts (to not see things I’ve boosted)?

JetForMe, to SwiftUI
@JetForMe@geekstodon.com avatar

In SwiftUI, what’s the most compact way to tell it to update a view periodically? Using a relative date formatting style, there's an implicit reliance on "now" that isn’t surfaced in the code. Obviously I can make my view have a Date property that I update from a timer, but I don't actually need that date for anything that's displayed. Is there no way to just say "redraw yourself?”

#SwiftUI #Swift

JetForMe, to random
@JetForMe@geekstodon.com avatar

It’s really tedious that Apple forces us to make App Icons just to get the app into TestFlight. Early testers don’t need icons.

#Xcode

JetForMe, to apple
@JetForMe@geekstodon.com avatar

@twostraws Did you write that handTracker.calculateDistance(from:to:) method yourself or is that provided by ARKit? I can't find it…

#ARKit #visionOS

JetForMe, to macos
@JetForMe@geekstodon.com avatar

My gods what is happening to my brain? I wanted to implement an .onDuplicate() command in #macOS #SwiftUI menus. I started googling how to do view modifiers and focused commands, and I was like, “I feel like I’ve done this already.” Checked my blog, and sure enough, I even wrote it up:

https://jetforme.org/2024/02/SwiftUI-Menu-Commands/

Now, this sort of thing happens to me frequently, but usually the elapsed time is more than a year. This time it was a few weeks.

JetForMe, to random
@JetForMe@geekstodon.com avatar

For fucks sake, YouTube now has games you can play right in the app (and presumably the website).

Stop. Companies need to stop adding stupid features before fixing basic ones (for example, my YT watch history never records videos I watch in iOS, only on the web).

JetForMe, to random
@JetForMe@geekstodon.com avatar

Is #Xcode code completion just generally terrible for anyone else, or just me?

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