
ビスター(Vistar)
1.6K posts

ビスター(Vistar)
@vistar941
UIKit SwiftUI Exploring Internals
Katılım Şubat 2024
99 Takip Edilen933 Takipçiler

@Kyomesuke 初めて見ましたがSwift StringProtocolにもあるので使いやすそうですね 😊
developer.apple.com/documentation/…
日本語

うぉおお、localizedStandardCompare(_:)なんて知らなかった。Finderと同じ法則で並び替えられるらしい。
developer.apple.com/documentation/…
日本語

@zunda_pixel public apiのみならUISegmentedControl をextensionでUIViewのメソッドをoverride openしてHuggingPriorityを.defaultLowにすればプロジェクト内のSUIのPickerも frameでheight指定できるようになりますが、frameつけ忘れると巨大になるのでおすすめしません笑
日本語

@nathantannar4 @cifilter I haven’t tried it yet, but I wonder if rasterizing it this way would make it work.

English

@alpennec Sadly, the Wayback Machine doesn’t play very nicely with Apple’s docs pages…
English

@vistar941 Interesting. I tried to use wayback machine but it doesn’t seem to work for the English url.
English

To clarify: this is not new and has been the way iOS handled cancellation + confirmation for ages.
What I’m not sure about is where to put a close button when there is no confirmation. It seems Apple tends to put them at the trailing edge of a toolbar 🤔
x.com/vistar941/stat…
Axel Le Pennec@alpennec
Apple updated its Human Interface Guidelines for Sheets on March 24, 2026 to add guidance for button placement in the toolbar. "In iOS & iPadOS, the Cancel button belongs on the leading edge of the top toolbar." Time to update my apps 🙂 Documentation: #Platform-considerations" target="_blank" rel="nofollow noopener">developer.apple.com/design/human-i…
English


Apple updated its Human Interface Guidelines for Sheets on March 24, 2026 to add guidance for button placement in the toolbar.
"In iOS & iPadOS, the Cancel button belongs on the leading edge of the top toolbar."
Time to update my apps 🙂
Documentation: #Platform-considerations" target="_blank" rel="nofollow noopener">developer.apple.com/design/human-i…

English

ビスター(Vistar)@vistar941
@alpennec In OS 26, they all visually became an “×” icon, so you can’t really tell them apart by appearance anymore. But API-wise and accessibility-wise, they’re still distinguished. You can check this with VoiceOver. The Apple apps examples I posted earlier are all Close buttons.
QME

@alpennec In OS 26, they all visually became an “×” icon, so you can’t really tell them apart by appearance anymore.
But API-wise and accessibility-wise, they’re still distinguished. You can check this with VoiceOver.
The Apple apps examples I posted earlier are all Close buttons.
English

@vistar941 Maybe Close behaves differently than Cancel? 🤔 I always hesitate in my apps…
English

@p_x9 YouTubeみたいなAVSampleBufferDisplayLa...を使ってるプレイヤーからシームレスにAVPlayerVCに接続できるのですかね🤔
かつcontentOverlayViewがPiPに表示されれば再現出来そうですが、前者は難しいような気もする...
日本語

@vistar941 ありがとうございます
AVPictureInPictureController経由のPiPばかり考えてたのですが、AVPlayerViewController経由なら行けそうな予感を感じました
これに足したsubviewがPiPにも表示されてくれるのなら熱いですね
developer.apple.com/documentation/…
日本語


@SebJVidal _UIActivityViewControllerPC is a subclass of UIPopoverPC (for the iOS 26 default activityVC modal style change.)
I’ve just never seen something like UIPopoverPC, which is normally vended as a property from the VC, being initialized directly like that!
English

@vistar941 Yeah, vending your own presentation controller is pretty standard when implementing the UIViewControllerTransitioningDelegate protocol. Can’t remember off the top of my head what the custom activity view controller presentation controller does though :)
English

@SebJVidal
Have you ever initialized and used UISheetPC or UIPopoverPC directly with the public initWithPresentedVC...?
I noticed _UIActivityViewControllerPresentationController takes this approach, and now I’m kind of curious 👀
English

@alpennec This is probably caused by a series of transition-related issues 🙃
English














