Releases
0.2.0
Compare
Sorry, something went wrong.
No results found
Breaking Changes
Several protocols were renamed to be consistent with the Standard Library:
IntegerType → IntegerProtocol
PointType → PointProtocol
RationalNumberType → RationalNumberProtocol
RealNumberType → RealNumberProtocol
VectorType → VectorProtocol
WholeNumberType → WholeNumberProtocol
Several String‐based number initializers now use StrictString instead. (See “New Features”)
RationalNumberProtocol has additional requirements.
OneDimensionalPoint has been split into OneDimensionalPoint and FixedScaleOneDimensionalPoint
New Features
Shared value type for referencing structures as though they were classes.
Built‐in support for observing changes, enabling value binding which is type‐safe, automatic and keyless.
Preferences
Functional on Linux.
Bindable as Shared values.
Localization tools: Localization, UserFacingText, LocalizationSetting
Not dependent on resources (compatible with the Swift Package Manager).
Closure‐based interpolation allows dynamic grammar.
Type‐safe arguments.
Specific localizations can be temporarily engaged directly from source code.
Easy file saving and loading with FileConvertible.
Easy, OS‐independent access to best‐practice file‐system locations. See extensions to FileManager.
Pattern‐matching‐based replacement methods for RangeReplaceableCollection.
Shuffling and randomization methods for collections.
Geometry tools:
Access the change in x or y , the angular direction, or the length of any vector instance.
Run loops can be passed off to ARC with runForDriver(_:).
CalendarDate provides simplified calendar operations.
StrictString: A string that keeps itself in NFKD, which makes some string operations simpler, more predictable, and safer for naïve use.
LineView accesses a string as a collection of lines.
Weak<Pointee> allows weak references to be stored in collections.
Shell provides an easy way to run shell commands (macOS/Linux only).
You can’t perform that action at this time.