ビスター(Vistar)
1.6K posts

ビスター(Vistar)
@vistar941
UIKit SwiftUI Exploring Internals
Entrou em Şubat 2024
99 Seguindo930 Seguidores

@vistar941 改めてSwiftUI.safeAreaInsetで実装してみると、引っ張った際に、safeAreaInset内のコンテンツがlargeTitleが追従できないので、完全再現はだめそうでした...
UIKitでやった方が良さそうですね

日本語

@MaartenBorsje Thanks 😊
The code applied correctly, but tapping Restore doesn’t seem to do anything…

English

The new app Translator is finally available after months of arguing with Apple.
apps.apple.com/app/id67575973…
English

@vistar941 @flyosity @SebJVidal Hopper seems to indicate that it affects the material/glass rendering.

English

@flyosity @cifilter @SebJVidal
UIView._setOverrideUserInterfaceRenderingMode: seems to set an int via internal trait overrides.
Does anyone know what behavior this flag actually controls? 👀
It looks related to vibrancy or compositing. Besides the default 0, I’ve seen 1 and 2.

English

@mykolaharmash The default UICollectionView behavior already gives a pretty good experience.
English

@Dimillian Codex iOS should add a navigationTitle or backButtonTitle to the main screen!
That alone would make iOS engineers love Codex even more. 😄

English

@KyleSwifter Even if SUI is closed source, if behavior changes like this can happen without documentation, it makes me want to write UIKit more and more 🙃
English

Are these two SwiftUI snippets equivalent?
Text("Hello, world!")
.kerning(10.0)
Text("Hello, world!")
.kerning(4.0)
.kerning(6.0)
The answer is: it depends.
See more details here: kyleye.top/posts/swiftui-…
English

@vistar941 Yes, absolutely! In fact, this implementation doesn't use .blur() at all. The soft glow and spotlight are achieved entirely by blending the opacity stops inside the AngularGradient, combined with a LinearGradient mask and plusLighter blendMode

English

@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

















