Alex Gubanov (@testable_import) profile picture
Thailand
Joined July 2020
Photo by Alex Gubanov (@testable_import)Photo by Alex Gubanov (@testable_import)Photo by Alex Gubanov (@testable_import)Photo by Alex Gubanov (@testable_import)Photo by Alex Gubanov (@testable_import)Photo by Alex Gubanov (@testable_import)
Alex Gubanov retweeted
A couple of things to note... - The width of the sheet is determined by the presented view controller's contentSize property. You _need_ to use a non-zero height value too. - The sheet can be centre, leading or trailing aligned. Use a value of 0, 1 or 2, respectively.
3
32
2,473
Alex Gubanov retweeted
Been a while, but here's your private API of the day... UIKit's fluid slider, as seen in Apple Music, Podcasts, SpringBoard and more. UISlider has private `_sliderStyle` and `sliderConfiguration` properties. Here, the slider has a style of 110, and the configuration is an instance of the private `_UISliderFluidConfiguration` class.
17
15
3
533
58,003
Alex Gubanov retweeted
⚠️ Private API of the day...and it's a good one 🤓 UICustomViewMenuElement is a class that inherits from UIMenuElement and lets you initialise a menu item with a custom content view. It's used in frameworks like ChatKit for the Messages app. Gist below👇🏽
14
25
1
418
40,192
Adding your privacy manifest is now a lot easier with privacymanifest.dev
Starting today, Apple requires all apps to include a privacy manifest for "required reason APIs". In this post, I explain how you can add a privacy manifest to your app! 🎓 which APIs need a manifest 🎓 How to add a manifest? 🎓 What about 3rd parties? donnywals.com/how-to-add-a-p…
3
16
43
10,669
Alex Gubanov retweeted
The Steinberger-Natan law: "For every unsightly Apple bug, there is a sufficiently ugly swizzle that works around it." @steipete 🤣
5
6
1
40
6,459
Alex Gubanov retweeted
🟠 announcing Glur, a Swift library that uses Metal shaders in SwiftUI to render progressive (or gradient) blurs just like Apple's github.com/joogps/Glur
44
118
24
2,066
248,263
Alex Gubanov retweeted
Another month, another private UINavigationBar API 🙃 This time (and perhaps implemented by a developer of Scottish descent) UINavigationItem's `_weeTitle` property. Adds that "Thursday, 1 Feb" text above the "Summary" large title...
9
27
1
324
46,952
Alex Gubanov retweeted
⚠️ Private API of the Day: _UINavigationBarPalette This let's you add a "palette" below a UINavigationBar as per Calendar and Fitness. I'm by no means the first to discover this, but here's a fully Swift implementation, no Obj-C and bridging header. Probably App Store safe with a bit of obfuscation.
12
15
6
394
93,754
Alex Gubanov retweeted
Finally cracked the curious case of custom UINavigationBar heights...for real this time 😅 Turns out it's as easy as setting the `titleView` to an instance of the (private) `_UINavigationBarTitleView` class. Call the `setHeight:` method, add your subviews and, voila! This is the exact approach MobileSMS (Messages) uses, so works nicely with other navigation APIs and accessibility features 🥳
9
13
2
252
30,730
Mindr is now live on @ProductHunt! 🚀 producthunt.com/posts/mindr-… I would be so grateful if you could check it out and leave an upvote while you're there 😁 Your support will be rewarded. Anyone who upvotes on PH and reposts this post get's the chance to win a lifetime code 🤑
39
31
14
73
27,765
Alex Gubanov retweeted
I finally found how to have the nice #SwiftUI Text+timer style animation in an app (the default behaviour in a widget). I just missed to specify a transaction for the Text. It's working like a charm now! .transaction { t in t.animation = .default } cc @frboulais 🎁
I'm trying to use .contentTransition(.numericText()) on a Text with a timer style in #SwiftUI View (not used in a widget), but it's not working. What am I missing? 🤔
10
14
2
195
43,774
Alex Gubanov retweeted
Updated this navigationBar header in Duet… It felt weird showing both your _and_ your partner’s avatar in _your_ profile view 🤔 The fun expanding/collapsing animation has not gone to waste though!
10
3
106
10,161
Alex Gubanov retweeted
Made a one-file, App-Store safe version of this beautiful blur effect: github.com/aheze/VariableBlu… Thanks for the great work Janum!
I spent an unreasonable amount of time reverse engineering the variable blur effect on iOS, and posted a sample project in SwiftUI/UIKit. It uses the private type CAFilter, so use at your own risk. It’s such a nice effect — hope it’ll become API! github.com/jtrivedi/Variable…
22
48
11
839
375,131
Alex Gubanov retweeted
So this got a lot more interest than I anticipated… BUT! We have a solution 😱 Big thanks to @zats for doing most of the heavy lifting. Our combined solution allows you to replicate (almost?) exactly the behaviour you see in apps like iMessage. Gist: gist.github.com/sebjvidal/2f…
9
6
1
204
24,427
Alex Gubanov retweeted
Replying to @SebJVidal
Have you tried overriding frame setter? (Probably need to override layoutSubviews to adjust elements, too) From my limited testing seem to work gist.github.com/zats/04eed51…
1
1
5
652
iOS 16.4 introduced popovers to the iPhone! 📱👀 Interesting change, as until recently Apple discouraged using them on compact sizes in the HIG. If you are wondering, they act and look basically the same as on iPadOS.
3
12
3
87
23,788
Alex Gubanov retweeted
Really pleased with this onboarding screen I built at work today. It’s not a video, rather actual UIKit components in a child view controller, so free support for dark mode and a11y settings 😎 Manual layout code because auto layout does not play nice with affine transforms 🤯 – at Salford, England
8
4
4
101
19,276
For every `as?` or `as!` in your app, Swift runtime executes a protocol conformance check. Did you know this is one of the slowest operations in Swift? An app like @Uber has +100K conformance records 🧵How to easily speed up conformance checks by ~20% w/ no source code changes
3
30
4
217
105,208