Achraf Trabelsi

26 Followers
133 Following
47 Posts
Optimizing views in SwiftUI using EquatableView

SwiftUI provides us a very fast and easy to use diffing algorithm, but as you might know, diffing is a linear operation. It means that diffing will be very fast for simple layouts and can take some time for a complicated layout.

Swift with Majid
To develop a game only for iOS, is SpriteKit still a good choice? And is it still maintained by Apple ?

FrameUp has been updated to support Swift 6!

I've also added a new unclippedTextRenderer() modifier for a quick fix on clipped text and support for FlippingView and rotation3dEffect(back:) in visionOS.

Again, I would recommend against Swift 6 mode until SwiftUI alignmentGuide bugs have been fixed.

https://github.com/ryanlintott/FrameUp

#SwiftUI #iOSDev

GitHub - ryanlintott/FrameUp: Reframing SwiftUI Views. A collection of tools to help with layout.

Reframing SwiftUI Views. A collection of tools to help with layout. - ryanlintott/FrameUp

GitHub
Swift 6 is solving a problem I didn't encounter in 15 years of iOS development by providing me with lots of problems I didn't ask for.
#swift #ios #iosdev

Cork version 1.4.5 is out.

This update includes a new preview window, which lets you see information about packages before you install them.

Other changes can be found in the GitHub project: https://github.com/users/buresdv/projects/2

I'm on vacation until September 30th and don't feel like writing about them.

#swift #swiftUI #macOS #opensource #buildinpublic #macdev #homebrew #CorkApp

Cork Project Board • buresdv

Cork Project Board

GitHub

Did you know that Skip lets you use Google's Material Icons to stand in for SF Symbols, so your #SwiftUI Image(systemName:) calls work across platforms?

Doc: https://skip.tools/docs/modules/skip-ui/#system-symbols
Material Icons: https://fonts.google.com/icons

skip-ui

Skip brings SwiftUI app development to Android

Skip

This app-crashing Swift 6 SwiftUI bug is still around in Xcode 16.0 beta 6. Remove items from a ForEach with alignmentGuide and animation and the whole app crashes!

I know its a weird scenario but I wanted to make my Swift Packages compatible with Swift 6 and I can't do it without this bug fixed (as I risk crashing the apps of anyone trying to use them).

Please boost if you know those working on SwiftUI.

Gist with code and feedback number:
https://gist.github.com/ryanlintott/e9accf235f4afb49f6178bec73bf5f80

#iOSDev #SwiftUI #Swift

FB14810097: App crashes when an item with an alignmentGuide is removed from ForEach inside a Layout with animation.

FB14810097: App crashes when an item with an alignmentGuide is removed from ForEach inside a Layout with animation. - CrashingView.swift

Gist

Found another SwiftUI bug in iOS 18 beta that will crash the app if spacing is set to zero on a VStack... but only sometimes.

Changing the spacing to 1 prevents the crash. It might take me a while to figure out what views inside the VStack will trigger this behaviour.

#iOSDev #SwiftUI

I just released ButtonKit 0.4.0 ; including the external trigger API.

Ever dreamt of a SwiftUI Button that supports Asynchronous, Throwable, with animations, progress support, and that can be triggered externally?

Search no more!

https://github.com/Dean151/ButtonKit/releases/tag/0.4.0

#SwiftUI #OpenSource #iOSDev

Release 0.4.0 · Dean151/ButtonKit

New Features External Triggers: trigger a button behavior, keeping free progress & error animations from an external action (fixes #7) Breaking Changes Swift 5.7 and 5.8 are no longer supported ...

GitHub

Two weeks break without social media was awesome! 🥰

Fully recharged 🔋