Seb Vidal

7.4K posts

Seb Vidal

Seb Vidal

@SebJVidal

iOS Developer 👨🏽‍💻 Chairman of the _UINavigationBarPalette fan club.

Manchester, England Entrou em Haziran 2012
174 Seguindo6.7K Seguidores
Tweet fixado
Seb Vidal
Seb Vidal@SebJVidal·
Here it is! What's New in UIKit in iOS 26. This was a pretty mammoth undertaking, and it shows – a whopping 64 minute read! I'll be keeping this article up to date over the beta cycle. Possibly littered with errors. Shout at me if I've made any stupid mistakes. Link below 👇
Seb Vidal tweet media
English
34
41
457
67.6K
Klemens 🦆 Art of Fauna
Klemens 🦆 Art of Fauna@klemensstrasser·
Art of Flora is AVAILABLE NOW! 🌸 🌱 A cosy puzzle game based on historical plant art 🫶 20 % are donated to nature conservation 🦾 Big focus on accessibility 🧑‍🎨 Artist gallery 🎻 Beautiful sounds 🧒Kids mode Exclusive on the @AppStore Link below! ⬇️
Klemens 🦆 Art of Fauna tweet media
English
22
43
162
17.1K
Seb Vidal
Seb Vidal@SebJVidal·
@DylanMcD8 @jacobtechtavern Yup 🥲 Never mind third parties, it's insane than Apple are gonna give up a 1? 2? decade competitive advantage with their silicon so their engineers can...write less code? Some areas of the OS/1P apps are on parr with the quality of platforms they used to mock during keynotes.
English
0
0
2
55
Seb Vidal retweetou
Jacob Bartlett
Jacob Bartlett@jacobtechtavern·
I compared UIKit and SwiftUI performance with the most ridiculous scroll view possible. Memory usage wasn’t dramatic, but was interestingly spiky. Perhaps due to the different numbers of gifs and different resolution of the images rendered on each cell. When it came to profiling peak memory and energy usage, I expected UIKit to yield the same kind of results I saw in SwiftUI: We’re still displaying an enormous number of elements, animating them the same, and these images are not any bigger or smaller, right? Now don’t I look silly. Memory usage hovered around 92MB for UIKit, compared to 248MB in SwiftUI. Read my scientific performance comparison right here 🧪 blog.jacobstechtavern.com/p/swiftui-vs-u…
Jacob Bartlett tweet mediaJacob Bartlett tweet media
English
11
18
187
32.3K
Dylan
Dylan@DylanMcD8·
@SebJVidal Just realized I missed this Yeah I wasn't defending this ad at all, I hate it, just wanted to make sure you knew that option was there now
English
1
0
1
63
Seb Vidal
Seb Vidal@SebJVidal·
Nice
Seb Vidal tweet media
English
4
0
16
2.6K
Seb Vidal retweetou
Seb Vidal
Seb Vidal@SebJVidal·
@No_Wham What? UIVisualEffectView’s effect property?
English
0
0
0
99
Noam Efergan
Noam Efergan@No_Wham·
@SebJVidal it's almost as if, and bare with me here, this API wasn't made for public consumption yet
English
1
0
0
120
Seb Vidal
Seb Vidal@SebJVidal·
Relatively trivial fix, although not so trivial to trace... UIVisualEffectView removes its _UIFlexInteraction when you nil out its effect property. This removes its internal _UIFlexInteractionGlowContainerView that houses _UIMultiLayers, CAPortalLayers and CABackdropLayers. Understandably, this can't animate. The fix? Use a non-interactive glass effect and Move™ the flex interaction to a superview. 🫠
Seb Vidal@SebJVidal

Trying to whip up a nice animation for this play control. At some point the UIKit team fixed UIGlassEffect's ability to animate in/out which was broken in 26.0 but it's still not perfect... Notice the transform applied by _UIFlexInteraction resetting without animating. 🥹

English
4
2
60
9.1K
Seb Vidal
Seb Vidal@SebJVidal·
The tapping of the button while it's hidden looks a little janky, but this is for demonstration purposes only. Once the button dematerialises (thanks AVKit for that buzzword!) it's no longer interactive.
English
0
0
2
397
Seb Vidal
Seb Vidal@SebJVidal·
@nathantannar4 No, I’m replicating the effect of _UIButtonBarButton in a UIToolbar. Animating the glass effect, blur radius of the image and alpha of the image. Turns out the jumpiness was caused by UIVisualEffectView removing it’s _UIFlexInteraction when nilling out the effect property 🙃
English
0
0
0
95
Seb Vidal
Seb Vidal@SebJVidal·
Trying to whip up a nice animation for this play control. At some point the UIKit team fixed UIGlassEffect's ability to animate in/out which was broken in 26.0 but it's still not perfect... Notice the transform applied by _UIFlexInteraction resetting without animating. 🥹
English
4
2
41
12.1K
Seb Vidal
Seb Vidal@SebJVidal·
I have a legitimate reason to use CAMeshTransform and I could not be more excited.
English
2
0
28
3.1K
Chad Etzel
Chad Etzel@jazzychad·
@SebJVidal @NathanBLawrence I know it doesn’t help UIKit/CA folks much, but I wrote a metal mesh transform shader (primarily as SwiftUI layer effect) and I’ll be discussing and open sourcing it at @DeepDishSwift for my talk about the Genie effect
English
1
0
2
50
Noam Efergan
Noam Efergan@No_Wham·
@jacobtechtavern @SebJVidal 8 times out of 10 this is a wrong setup situation, where the id or the initialisation process are wrong, causing the entire list to load eagerly instead of just what’s on the screen
English
2
0
4
1.1K
Seb Vidal
Seb Vidal@SebJVidal·
@DylanMcD8 Ooooh I might have to use that wallpaper on my new displays 🤤
English
1
0
1
352
Dylan
Dylan@DylanMcD8·
Thoughts on new setup?? Gosh I can't wait to be able to have a wraparound / "L" desk again... so cramped rn lol
Dylan tweet media
English
44
18
694
28.7K
Seb Vidal
Seb Vidal@SebJVidal·
@ertembiyik Will take a look when I’m back at my Mac. Thanks!
English
1
0
0
60
ertem
ertem@ertembiyik·
@SebJVidal true, check if it has one if it happens to be so you can swizzle it though
English
1
0
2
60
Seb Vidal
Seb Vidal@SebJVidal·
@ertembiyik I guess that would require me to hijack the delegate of the offending layer which _could_ be an instance of UIView?
English
1
0
0
62
ertem
ertem@ertembiyik·
@SebJVidal in your case you can patch the transform here instead of doing nothing
ertem tweet media
English
1
0
2
81
Seb Vidal
Seb Vidal@SebJVidal·
@ertembiyik Sorry, not sure I follow… Have you got an example?
English
1
0
0
144
ertem
ertem@ertembiyik·
@SebJVidal hmm, maybe set the actionForKey to a custom action class that does nothing?
English
1
0
0
171
Seb Vidal
Seb Vidal@SebJVidal·
I've tried recursively iterating over the view hierarchy/layer tree and resetting the transforms in my UIViewPropertyAnimator's animations block, but to no avail. This might have to do 🤷‍♂️
English
0
0
1
469