Baggins

🎒 My personal bag of holding for Swift extensions.
Additions
Bool.toggled()
Safe Collection
subscripts
Collection.nonEmpty
from objc.io
Collection sorting with KeyPath
Concurrency
Task.sleep
with seconds
withTimeout
- race `firstOf(_:or:)
Task.unsafeBlocking
(careful with this one!)
Exported Flow
Sequence.toArray()
String leftPadding
, isUppercase
, isLowercase
, contains(anyOf:)
, split(withWord:)
Exported UnwrapOrThrow
Other stuff in _Brewing.swift
which it probably shouldn’t be used. Still brewing… 🧙♂️
Author
Alejandro Martinez | https://alejandromp.com | @alexito4
Baggins
🎒 My personal bag of holding for Swift extensions.
Additions
Bool.toggled()
Safe
Collection
subscriptsCollection.nonEmpty
from objc.ioCollection sorting with
KeyPath
Concurrency
Task.sleep
with secondswithTimeout
Task.unsafeBlocking
(careful with this one!)Exported Flow
Sequence.toArray()
String
leftPadding
,isUppercase
,isLowercase
,contains(anyOf:)
,split(withWord:)
Exported UnwrapOrThrow
Other stuff in
_Brewing.swift
which it probably shouldn’t be used. Still brewing… 🧙♂️Author
Alejandro Martinez | https://alejandromp.com | @alexito4