Canβt believe that #Swift still doesnβt have βarrayβ in 2024. π€£
github.com/swiftlang/sw...
@unixzii.bsky.social
Gen Z. Internetrovert. No-stack engineer. UX enthusiast. Console gamer. Curiosity-driven learner. The rebel. He/him π³οΈβπ. Stand w/ πΊπ¦. Opinions are my own.
Canβt believe that #Swift still doesnβt have βarrayβ in 2024. π€£
github.com/swiftlang/sw...
You can use branded types to fully leverage #TypeScript, enabling type-checking for everything - even a simple string!
17.11.2024 18:47 β π 9 π 1 π¬ 1 π 1LLDB console that shows a SwiftUI layer object in UIKit view hierarchy.
Fun fact: UITextView is now using #SwiftUI to render its contents π€― #iosdev
08.11.2024 16:14 β π 3 π 0 π¬ 0 π 0let moonCGPath = CGPath( ellipseIn: .init(x: 0, y: 0, width: 100, height: 100), transform: nil).subtracting(CGPath( ellipseIn: .init(x: 40, y: -10, width: 80, height: 80), transform: nil)) // Serialize the Path to a String. let moonPath = Path(moonCGPath) let serializedMoonPath = String(moonPath) print(serializedMoonPath) // Deserialize a Path from the String. let deserializedMoonPath = Path(serializedMoonPath) assert(deserializedMoonPath != nil)
TIL, #SwiftUI Path implements LosslessStringConvertible, so you can serialize and deserialize paths easily. CGPath can also have this with the help of SwiftUI Path.
08.11.2024 09:50 β π 1 π 0 π¬ 0 π 0@main
struct Cyandev: Bluesky {