ビスター(Vistar)

1.6K posts

ビスター(Vistar) banner
ビスター(Vistar)

ビスター(Vistar)

@vistar941

UIKit SwiftUI Exploring Internals

Tham gia Şubat 2024
99 Đang theo dõi930 Người theo dõi
Julien Sagot
Julien Sagot@Barbapapapps·
Second day in a row that I’ve found a need for .ignoredByLayout() to work around SwiftUI bugs…
Julien Sagot tweet media
English
2
1
4
278
zunda
zunda@zunda_pixel·
@vistar941 改めてSwiftUI.safeAreaInsetで実装してみると、引っ張った際に、safeAreaInset内のコンテンツがlargeTitleが追従できないので、完全再現はだめそうでした... UIKitでやった方が良さそうですね
zunda tweet media
日本語
1
0
0
508
zunda
zunda@zunda_pixel·
GitHubも_UINavigationBarPaletteを使っていそう
zunda tweet media
日本語
2
2
85
9.9K
Maarten Borsje
Maarten Borsje@MaartenBorsje·
So here are a couple of life time keys. 4KNTJW9JAFT7 FWRJ7LA7FL6X EW964PLH9RR7 3KPX6KJ9WFTE JPT9W9K7J97E HW7799FYELWW TFK9A9JF7HYW
HT
2
0
4
666
ビスター(Vistar)
ビスター(Vistar)@vistar941·
@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.
ビスター(Vistar) tweet media
English
2
0
7
475
codelaby
codelaby@Codelaby·
Recreated these Pinterest bookmarks in SwiftUI. #SwiftUI #iOSDev #UIDesign A, B or C? Took a ton of work to nail the details—especially the variable blur using CoreImage, liquid glass effects, and dynamic shadows via prominent color detection. And fully compatible with macOS!
codelaby tweet media
English
3
0
6
805
Mykola Harmash
Mykola Harmash@mykolaharmash·
I've had so many issues with the standard SwiftUI drag-n-drop API, had to re-implement the whole thing from scratch. Still not ideal but at least now I have control over the experience and can iterate.
English
9
1
47
4.4K
ビスター(Vistar)
ビスター(Vistar)@vistar941·
@Dimillian Codex iOS should add a navigationTitle or backButtonTitle to the main screen! That alone would make iOS engineers love Codex even more. 😄
ビスター(Vistar) tweet media
English
0
0
0
292
Thomas Ricouard
Thomas Ricouard@Dimillian·
Little tip, you want to build and run an iOS app on your current iOS device from Codex mobile? Just ask Codex.
Thomas Ricouard tweet media
English
21
4
211
15K
ビスター(Vistar)
ビスター(Vistar)@vistar941·
@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
0
0
8
404
Kyle Ye
Kyle Ye@KyleSwifter·
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
3
1
24
2.9K
codelaby
codelaby@Codelaby·
@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
codelaby tweet media
English
1
0
1
153
codelaby
codelaby@Codelaby·
Just ported this awesome Tubelight material effect to SwiftUI! 💡✨ AngularGradient + gradient mask + blendMode #iOSdev #Swift #UIUX
English
4
2
78
9K
ビスター(Vistar)
ビスター(Vistar)@vistar941·
@zunda_pixel 宣言は一回で大丈夫ですよ! この場合SwiftUI Pickerにも自動反映されるので
ビスター(Vistar) tweet media
日本語
0
0
0
92
zunda
zunda@zunda_pixel·
@vistar941 つけて回るのが大変ですねw 色々触っていたらintrinsicContentSizeのoverrideだけでもいけました。
zunda tweet media
日本語
1
0
0
95
zunda
zunda@zunda_pixel·
SwiftUI.PickerのcontrolSizeが5つあるけど、実質2つしかない... この中間サイズが欲しい
zunda tweet media
日本語
1
0
8
823
ビスター(Vistar)
ビスター(Vistar)@vistar941·
@zunda_pixel public apiのみならUISegmentedControl をextensionでUIViewのメソッドをoverride openしてHuggingPriorityを.defaultLowにすればプロジェクト内のSUIのPickerも frameでheight指定できるようになりますが、frameつけ忘れると巨大になるのでおすすめしません笑
日本語
1
0
1
117
zunda
zunda@zunda_pixel·
@vistar941 おー いけました!ありがとうございます
zunda tweet media
日本語
1
0
1
120
ビスター(Vistar)
ビスター(Vistar)@vistar941·
@alpennec As a workaround, you can grab the UISheetPC from the SwiftUI view and implement presentationControllerDidAttemptToDismiss in the coordinator. #file-fullsheet-swift-L60" target="_blank" rel="nofollow noopener">gist.github.com/vistar941/2bc3…
English
1
0
4
571
Axel Le Pennec
Axel Le Pennec@alpennec·
Is there a way in SwiftUI to detect when a sheet is being dismissed by a user to present a confirmationDialog in case of unsaved changes, as recommended by Apple HIG about Sheets? In UIKit, we can use the presentationControllerDidAttemptToDismiss method. Feebdack: FB22777840
Axel Le Pennec tweet mediaAxel Le Pennec tweet media
English
7
0
17
5K