This page contains links to blogposts that contain extensions for predefined Swift types.
This extension introduces an operation to rebase a String.Index if the originating string of an index variable has changed. This is important when changing a string's length because the indexes before the string update are still using the older string endIndex.
These two extensions check if a UTF16 character at the given String.Index is present in the NSCharacterSet lowercase resp uppercase.
Only available for mutable strings, this extension replaces a character in the string with a given character.
Only available for mutable strings, this extension works only on lowercase or uppercase characters and reverses it case.
This extension reintroduces the removeObject operation (from the NSArray) to the Swift array type.
NSEventModifierFlags extensionsNSEventModifierFlags extensions: isSet and isNotSet
These functions make working with the even modifier flags more readable.
UInt8 extensionsBit access for a the UInt8
Accessing the bits as a set of 8 Bools in a tuple.
OptionSetType extensionsFactory method
A clean looking factory constructor when creating an option with multiple selections (OR-ing)
Comparable extensionLimiting functions
Some functions that can clip the value of a Comparable to either a maximum or minimum limit (or both).