Advertisement Β· 728 Γ— 90

Posts by Axel Le Pennec

The solution is to use .compositingGroup() on the SwiftUI Menu πŸŽ‰

Thanks to @saschagordner.de who pointed me to a StackOverflow answer about the exact same issue: stackoverflow.com/a/79884587

Documentation about compositingGroup: shorturl.at/btdM6

1 week ago 9 0 2 0

Oh I’ll try! Thank you!

In what console have you seen the warning? Xcode when running the code?

1 week ago 1 0 1 0
Video

Any idea how to fix this Liquid Glass visual bug?

In my app, I have a #SwiftUI Menu that presents an overlay over the whole view. But the Menu stays visible for a short period of time until it goes below the overlay 🫀

Works fine on iOS 17/18.

Code: gist.github.com/alpennec/31e...

1 week ago 2 0 1 1

Looking great Shawn! Thanks for sharing. Good luck for the launch πŸ™‚

3 weeks ago 0 0 1 0

Curious to see what’ll ship!

3 weeks ago 0 0 1 0
Post image

New app analytics are finally live in App Store Connect! Time to explore πŸ₯³

Next: dark mode? 🌚

3 weeks ago 5 1 0 0

Expected behaviour, not a regression nor a bug 🫑

Thanks Apple and the SwiftUI team for being reactive!

1 month ago 1 0 0 0
Advertisement
Video

Dear SwiftUI, can you please fix the regressions you introduced on iOS 26? FB22043999

In my View, I read the dismiss value from the Environment.

Whenever a Menu or Picker is opened, the View body is re evaluated πŸ€·πŸ»β€β™‚οΈ

This unexpected behaviour doesn't happen on iOS 18.5 πŸ™ƒ

1 month ago 4 0 0 1
Post image Post image

Lately, I’ve often had to approve transactions in my banking app when making in-app purchases (even free trial). It asks for approval even if I approved another purchase just a few minutes earlier.

I wonder whether this added friction hurts conversion rates 🫀

Have you experienced this as well?

1 month ago 0 0 0 0
Post image

TIL SwiftUI has a pixelLength environment value.

It's a shortcut to dividing 1 by the displayScale environment value as I did before πŸ™ƒ

Documentation: developer.apple.com/documentatio...

1 month ago 4 0 0 0
Post image

By observing the top content inset of the scroll view, I notice it gets updated from 0 to top safeAreaInset value when the view appears, and then when I reach the threshold that adds the title view above (which pushes the scroll view down and stop extending below safe area).

1 month ago 0 0 0 0
Video

I use .frame(in: .scrollView) to read a scroll view offset and show/hide a title.

But I observe a jump in the offset if the content extends below the safe area (when there's no View above).

Does adding the title change the frame I read? Should it?

Code: gist.github.com/alpennec/388...

1 month ago 0 0 1 0

Also, I’ve the feeling people don’t care anymore about the technical aspects of things now that they heavily rely on AI to write the code and do the work for them. In my experience, asking a technical question is more and more like speaking into the void nowadays.

2 months ago 3 0 0 0
Post image

I often find myself wanting to log the same message when previewing my app in the Xcode canvas and when running it on a Simulator or a physical device.

How would you handle using print() for preview and the unified logging system (Logger) at the same time without repeating?

2 months ago 0 0 0 0
Advertisement
Post image

You can still preview the profile.

2 months ago 1 0 0 0

x.com/nickgdwn

3 months ago 1 0 1 0

Conversion rate of what? Trial start or first dollar made by a customer (direct sale or trial conversion)?

Interesting approach. Because my current test has overlap between countries where prices between localized and not are more or less the same (tier 1). So this pollute the results for sure!

3 months ago 0 0 0 0
Post image

Who A/B tested if localized prices actually bring more money or not at the end? I know it depends on the app but curious if it's worth checking.

What test methodology have you used and what volume of data required to conclude?

Do @revenuecat.com or @superwall.bsky.social have some insights? πŸ‘€

3 months ago 1 0 1 0
Post image

After the Swift SDK for Android, Swift in the browser with ElementaryUI 🀩

The best time to learn Swift was eleven years ago. The second best is now πŸ˜‰

elementary.codes

3 months ago 7 0 0 0

Have you experienced this issue with your app accentColor not being respected, even without using Mixpanel?

If I just and only access UIScreen.main.bounds in my App init, the accentColor is ignored.

This page on SO gives other reasons like modifying UIAppearance: stackoverflow.com/questions/71...

3 months ago 0 0 0 0

TLDR about performances with Xcode Previews ⬇️

When you update:

- an β€œinline” value: πŸš€
- a stored property: 🐌
- a computed property: πŸš€

So if you centralize your design constants at the top of a View for example, computed variables are the way to go πŸ‘ŒπŸ»

4 months ago 2 1 1 0

I dug a bit more in this issue where my accentColor is ignored by my SwiftUI apps when I initialize Mixpanel in my App init (early but required).

I noticed it's due to the SDK accessing UIScreen.main.bounds.size...

My fix is to comment this line ⬇️

More: github.com/mixpanel/mix...

4 months ago 0 0 0 1

Confirmed by Apple 🫑

4 months ago 11 1 0 1

If there are some Apple engineers around: FB21355562

4 months ago 0 0 0 0
Advertisement
Video

One tip to speed up your SwiftUI previews 🀩

I wanted to centralize constants like opacity, spacing, or sizes used by my View to speed up prototyping.

Stored properties: slow 🐌 as Xcode recompiles the file every time I tweak a value.

Computed properties: instant updates 🏎️

4 months ago 10 1 2 1
Post image

SwiftUI AnyShapeStyle, yay or nay? πŸ€”

I've been using two foregroundStyle for my shaped view backgrounds: one with a Color (often a UIKit one: secondarySystemBackground) + another one with a HierarchicalShapeStyle.

But we can get the same with AnyShapeStyle + BackgroundStyle.

4 months ago 2 0 0 0

Thanks Craig! πŸ˜‰

4 months ago 7 0 0 0
Post image

Apple, don't be surprised if developers don't file feedback anymore in Feedback Assistant.

I take the time to file detailed feedback with steps, device details + screen recording to help improve things for everyone.

Please, don’t reply to ask for things I’ve already provided...

4 months ago 4 0 0 1

A solution suggested by @fatbobman.com is to "duplicate" the top/bottom content: one hidden in the safeAreaInset of each page + one visible/interactive in an overlay of the parent/container View (ZStack).

Of course it depends on the onboarding design.

Gist: gist.github.com/alpennec/2a3...

5 months ago 1 0 0 0

Thanks for the help!

5 months ago 1 0 0 0