
Building @RelaxeyeApp and @SpamOffApp
Thailand
Joined July 2020
- Tweets170
- Following842
- Followers66
- Likes506
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.
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.
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👇🏽
Alex Gubanov retweeted
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…
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
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...
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.
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 🥳
Alex Gubanov retweeted
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 🤑
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? 🤔
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!
Alex Gubanov retweeted
UIOnboarding by @lascic. Apple-esque animated welcome screen for iOS and iPadOS. 😍
github.com/lascic/UIOnboardi…
Alex Gubanov retweeted
This a neat trick for iOS developers👌 ⬇️
Skip lines of code while debugging your iOS application in Xcode
blog.eidinger.info/skip-code…
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…
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…
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…
Alex Gubanov retweeted
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.
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
Alex Gubanov retweeted
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


























