Ship Sunday 🚢
This week:
→ Full-page scroll screenshots (finally)
→ PDF from raw HTML string, no URL needed
→ Response time down ~18% after some nginx tuning
Small API, getting less small.
#buildinpublic #indiehackers
1
1
8
🔥 3 Swift 6 Features That Will Improve Your App Development
The pace of Swift's evolution continues to astound. While Swift 5.9 brought massive improvements, Swift 6 has introduced fundamental shifts that have truly redefined how we build safe, efficient, and maintainable applications. These three stand out:
𝟭. Compile-Time Concurrency Safety (Swift 6 Language Mode)
Data races were a persistent headache. Swift 6's opt-in safety checks catch potential concurrency issues at compile time, dramatically reducing runtime surprises and debugging time.
Benefit: increased confidence in concurrent code, fewer crashes, faster debugging cycles.
𝟮. Swift Testing Framework
The new native Swift Testing framework is a breath of fresh air. Its expressive macro-based syntax (Хэштег#expect) provides clearer assertions and richer failure diagnostics compared to XCTest, simplifying test writing and maintenance.
Benefit: faster test writing, easier debugging of failures, better organization with tags.
𝟯. Pack Iteration for Generics
Parameter packs (Swift 5.9) were powerful; pack iteration in Swift 6 makes them truly ergonomic. It eliminates tons of boilerplate code previously needed for variadic generic functions.
Benefit: drastically reduced generic boilerplate, more flexible and maintainable APIs.
Summary: these Swift 6 features aren't just incremental updates. They fundamentally improve code safety (Concurrency), development speed (Testing), and API design capabilities (Pack Iteration), leading to more robust and maintainable systems built faster.
560
✨ Swift Concurrency transformed how I write asynchronous code! Here's how I refactored callback hell into beautiful async/await:
1
488
✨ SwiftUI Scroll Position API is a total game-changer! No more hacky solutions for programmatic scrolling, check this out:
This makes features like "scroll to top" or "jump to section" trivial to implement! 🎯
Check out this demo I've made showcasing smooth category navigation:
github.com/Sleywill/ScrollPo…
Which Swift topic would you like me to cover next? Drop it in the comments! 👇
#SwiftDev #iOSCoding #SwiftUI #CodingTips
1
427
🔥 SwiftUI Tip: The new `.contentMargins()` modifier is a game-changer for spacing control!
Unlike traditional padding, it respects safe areas and works with scrollable content perfectly.
You can even define custom margin values for different container edges and combine with scrolling views without weird insets!
#SwiftUI #iOSDev #Swift #AppleDev
1
384
У меня заработал 5G в Тбилиси на magti, если это не какой-то тест, то мое почтение, ловит во всем Сабуртало
1
3
329












