swiftui

Back Open Paginator
15.08.2025 04:52
vladimirleonidovich (@vladimirleonidovich@mastodon.social)

Кстати, почему такая боль писать адаптив в iOS? Я буквально сравниваю ширину экрана в поинтах и подгоняю под это всё лейаут :michaelwazowski: :michaelwazowski: :michaelwazowski: Знаю, что существуют horizontalSizeClass, прочие вспомогательные штуки и они помогабт отличить iPhone от iPad, но не помогут писать разный адаптив под iPad 8.3 дюймов и 11 дюймов. Мне нравится подход CSS в этом плане.
А как вы пишите адаптив?




Show Original Post


15.08.2025 01:40
patrickmcconnell (@patrickmcconnell@mastodon.social)

Refactoring my Peakist app (peak bagging tracker) to use a UIKit mapView due to SwiftUI maps just being too slow and remaining incomplete.

Introduced a runtime error (updating state while drawing) and spent all day on a dozen different solutions but in the end it's working now with a combination of changes I could swear failed earlier.

Absolutely no confidence the errors are still gone tomorrow.

It was that kind of day.




Show Original Post


14.08.2025 23:18
nicoreese (@nicoreese@mastodon.social)

FB19646564- It's impossible to have concentric corners for content within a concentric View. The containerShape modifier needs to support ConcentricRectangle().





Show Original Post


14.08.2025 21:08
nicoreese (@nicoreese@mastodon.social)

Or this. You can see how all the rectangles take their corner radius from the device frame. How can I get them to take their next parent's radius?





Show Original Post


14.08.2025 20:50
nicoreese (@nicoreese@mastodon.social)

Why is the Rectangle not matching the corner radius? If I remove the Text element it works, because it assumes the device corner radius is meant to be used, but I want to take the concentric corners of the VStack. What am I doing wrong here?





Show Original Post


14.08.2025 20:43
swiftdevjournal (@swiftdevjournal@mastodon.world)

The following article shows how to create reusable SwiftUI toolbar components:

tanaschita.com/swiftui-reusabl

#SwiftUI




Show Original Post


14.08.2025 18:55
vrhermit (@vrhermit@mastodon.social)

Some ideas for how to read and use volume clipping margins in visionOS 26.

stepinto.vision/example-code/h





Show Original Post


14.08.2025 17:21
azamsharp (@azamsharp@iosdev.space)

Difference between using .externalStorage vs not using .externalStorage attribute in SwiftData.

.externalStorage - Stores image reference in the db.
Not using .externalStorage - Stores actual image.

* If the small is very small then SwiftData can still decide to store the image in db even if you use externalStorage attribute.

#swiftui #swiftdata





Show Original Post


14.08.2025 16:42
MuseumShuffle (@MuseumShuffle@mastodon.social)

TIL this SF Symbol is not necessarily the letter "A".

It changes based on what language is in use.





Show Original Post


14.08.2025 16:32
azamsharp (@azamsharp@iosdev.space)

Pragmatic Testing in iOS

Pragmatic Testing in iOS teaches TDD, stubs, mocks, UI, and view logic testing so you can ship stable, high-quality apps with confidence.

Coupon: ILOVETESTING
Expires: 08/14/2025
(Limited coupons)

azamsharp.teachable.com/p/prag

#iosdev #swiftui





Show Original Post


14.08.2025 16:32
nicoreese (@nicoreese@mastodon.social)

Is this really so complicated? How can I ignore the bottom safe area so that it's a uniform 3pt padding? ignoresSafeArea does nothing, neither do safeAreaInset and safeAreaBar.

As soon as I add padding, the safe area returns.





Show Original Post


14.08.2025 15:12
nicoreese (@nicoreese@mastodon.social)

Is there anything I can do about the corner radius weirdly animating when using .glassEffectTransition(.materialize)?

This happens specifically when using .glassEffect(.regular, in: .rect(corners: .concentric(minimum: 15), isUniform: true))





Show Original Post


1 ...215 216 217 218 219 220 221 222 223 224 225 ...236
UP