@dale_price@mastodon.online
@dale_price@mastodon.online avatar

dale_price

@dale_price@mastodon.online

#web & #ios developer

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

dale_price, to SwiftUI
@dale_price@mastodon.online avatar

issue update: I made a minimal example. As far as I can tell, when you animate passing different images to an Image view, on iOS 17 animates the size/shape of the new image for some reason. With .resizable() and .aspectRatio(contentMode:) modifiers (the intended way to fit images in a frame according to the documentation), this causes it to stretch bizarrely (without those modifiers, it slides around instead!)

Here's the same code running on iOS 16 (left) and 17 (right)

SwiftUI image swapping animation on iOS 16 (left) vs iOS 17 (right)

dale_price, to SwiftUI
@dale_price@mastodon.online avatar

I implemented a variable blur similar to the effect Apple uses throughout iOS as a metal shader and gave it a wrapper that lets you control the effect with a mask to create all sorts of effects

On GitHub as a package: https://github.com/daprice/Variablur – I'll give it a better readme sometime, but for now you can use Xcode's documentation viewer and previews.

Thanks to @twostraws's Inferno project and tutorial for inspiring me to try this!

Screenshot of Xcode preview showing the “rectangle.checkered” SF symbol with a blurry vignette around the edges
Screenshot of Xcode preview showing the “circle.hexagongrid” SF symbol with a blur across the whole image except for a rounded rectangle in the middle which is in focus

dale_price, (edited ) to SwiftUI
@dale_price@mastodon.online avatar

Welp, this is nasty: when focus leaves a TextField, every scroll view with a scrollPosition modifier anywhere in the app starts behaving unpredictably…

but only on certain devices. I can reliably reproduce it on my iPhone and Mac (“designed for iPad" target) but NOT an actual iPad and not any simulators.

Minimal example project in case anyone wants to try it: https://github.com/daprice/swiftui-scroll-view-breakage.git (also filed as FB13635112)

dale_price, to SwiftUI
@dale_price@mastodon.online avatar

Anyone else have issues animating between images scaled to fill or fit in after iOS 17? This did a nice crossfade in iOS 16, now it does this weird stretch effect as if it's trying to animate both images to/from the size of the other image.

(it's not just images, I'm seeing a lot of views stretch/squash during animations, even in Apple apps and system UI)

video/mp4

dale_price, to random
@dale_price@mastodon.online avatar

Today I tried again with the exact same simulator installation command that was giving me "disk almost full” errors for the past few days, and it  Just Worked™.

I literally did nothing, just closed my laptop yesterday, opened it today, and the problem is magically gone. I have the exact same amount of disk space that wasn't enough yesterday.

Really sucks having to wait an unspecified number of days for my Mac to decide I have enough disk space every time there's a new iOS SDK

dale_price, to random
@dale_price@mastodon.online avatar

Every time there's an update I lose like 3 days of work to this 😢

On my slow connection it takes most of a day to download a platform, then when it's finished it fails and has to start over.

"Show details" says my disk is full, but it doesn't matter how much space I free up, it just takes 5-6 attempts and then works out of the blue

dale_price, to random
@dale_price@mastodon.online avatar

There’s been a spill.

dale_price, to internet
@dale_price@mastodon.online avatar

The CEO Steve Huffman (spez) seemingly couldn’t read past this person’s first sentence without impulsively expressing his jealousy towards the app developers he’s screwing over like @christianselig’s

I’m sure reddit’s upcoming IPO will go well

dale_price, to random
@dale_price@mastodon.online avatar

Do I even want to know why every part of the submarine has the exact size, proportions, and even seam placement as the basic set of parts you get at the beginning of Kerbal Space Program?

a screenshot of Kerbal Space Program showing an airplane built out of basic cylindrical pieces plus a cockpit

dale_price, to random
@dale_price@mastodon.online avatar

the company isn't wasting any time

dale_price, to random
@dale_price@mastodon.online avatar

“Users don’t really want federation, it doesn’t benefit them”

looks around at people forced to rebuild their followings because the single owner of their centralized social network did something bad and they can’t move to a different service without starting over

Yeah, sure

dale_price, to random
@dale_price@mastodon.online avatar

😳 Zuck’s alt text!

(Which person do you think counts as the “1 person”? Also, he’s claiming this is a PHOTO he took??)

dale_price, to random
@dale_price@mastodon.online avatar

Trick or treat, Tim 🎃

dale_price, to random
@dale_price@mastodon.online avatar

Officially one of the worst error messages I’ve ever seen. I’ve read it several times and still don’t know what it means, and I’m a software developer.

Some database (related to 1password???) is corrupt, 1password was “reinitialized” (implying… my passwords are gone?) so I should review my settings (what exactly am I supposed to review them for? Do I fix the corruption myself in… settings?), but it also says it's fine and I can keep using it? What???

@1password

dale_price, to random
@dale_price@mastodon.online avatar
dale_price, to iOS
@dale_price@mastodon.online avatar

Has anyone else’s 16 just completely lost it today? My iPad just changed “ways” to “says” and “iterate” to “I’ve cat e”

dale_price, to iPhone
@dale_price@mastodon.online avatar
dale_price, to reddit
@dale_price@mastodon.online avatar

In light of the CEO revealing he intends to sell users’ data to AI companies, and the recent findings that feeding AI-generated content back into AI training completely ruins it…

Wouldn’t the most effective protest be to edit our post/comment histories to replace them with ChatGPT-generated drivel?

dale_price, to SwiftUI
@dale_price@mastodon.online avatar

Well, this is disappointing: it doesn't seem like the scrollTransition modifier works with effects that apply Metal shaders (layerEffect, colorEffect, etc).

You can use one and it shows up, but it only renders the initial value and doesn't animate when the scroll phase changes. 🙃

dale_price, to random
@dale_price@mastodon.online avatar

Hot take: the strengths that set the web apart have always been:

  • predictable back/forward navigation UI & browsing history
  • user control over tabs & windows
  • URLs that can be copied, shared, bookmarked, and linked and let you see how sites are structured
  • a standard set of UI elements that behave consistently across all sites (lol @ what JS frameworks have done to that one)
  • overall experience controlled by the user, not by the site/app

PWAs take away most or all of that.

dale_price, to javascript
@dale_price@mastodon.online avatar

was a mistake. Allowing any form of scripting on web pages was a mistake.

(gumroad, a professionally developed, highly funded, commercial platform, just starts doing this on its own after you scroll down the page a little bit, no other user input required)

(nausea/motion sickness warning for the video!)

a screen recording of a gumroad page scrolling itself up and down repeatedly, several times a second

dale_price, to SwiftUI
@dale_price@mastodon.online avatar

pixelLength is “usually equal to 1 divided by displayScale” according to the docs for EnvironmentValues.

What does "usually" mean here? In what situations is pixelLength not the reciprocal of displayScale?

dale_price, to random
@dale_price@mastodon.online avatar

@ivory This seems like it could be a macOS bug, but I don't think I've seen it outside of Ivory: Undo/Redo goes haywire in the compose view and…

  • sometimes Undo (or cmd+z) does nothing at all
  • sometimes Undo does nothing except highlight a random part of my post
  • sometimes Undo goes too far back and deletes most or all of the text I've written
  • Redo stays grayed out/unusable no matter what

It seems to be worse if I've typed something that triggers autocorrect.

Ivory 1.9.3, macOS 14.4.1

dale_price, to random
@dale_price@mastodon.online avatar

Am I the only one who thinks that instead of shutting off life-saving air conditioning during a heat wave, the solution should be to reduce NON-ESSENTIAL loads so people can cool their homes?

https://www.theverge.com/2024/5/30/24167870/ecobees-smart-thermostat-can-automatically-respond-to-a-heatwave

dale_price, (edited ) to SwiftUI
@dale_price@mastodon.online avatar

If you have a app with a grid (e.g. LazyVGrid) or LazyVStack, how are you handling focus/keyboard navigation?

Wondering because it looks to me like just adding .focusable() to each item is all that’s needed for single selection…

but "The SwiftUI cookbook for focus" from WWDC23 says to add .focusable() to the grid view and then implement your own focus ring, keyboard navigation, & tap/click handling from scratch for each platform, which seems… brittle and not very SwiftUI-ish?

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