Releases: AckeeCZ/ACKategories
Releases · AckeeCZ/ACKategories
👋 CALayer shortcuts
Removed
CALayer
shortcuts onUIView
as they were occasionally ambigous with other libraries (kudos to @olejnjak)
5.4.0
String and UIViewController extras
- add extensions to simply adding and removing childViewController on
UIViewController
- improve
string.trimmed()
method to receiveCharacterSet
and side as arguments so now you can trim different characters then just whitespaces and newlines, also you can trim just from one side
Fix conditional assignment
Well if you tried the following code
let nilValue: Int? = nil
var property: Int? = 5
property =? nilValue
the property
would be nil which just sucks. Now it just works.
5.2.0
5.2.0
Additions
- add concatenation capability to
NSAttributedString
- add
isEmpty
property to optional collections (this has a side-effect that the same property onString
is removed asString
isCollection
) - add
UIButton.centerVertically(padding:)
extension - add
safeArea
toUIView
which can be used on all systems (on older systems it just fallbacks to appropriate edge)
Deprecations
String.normalizedValue()
is deprecated in favor ofString.normalized()
and will be removed in next major release
Bunch of new stuff
- add safe subscript to
RandomAccessCollections
- add
+
function to merge two dictionaries - add extension for
UITableView
to dequeueUITableViewHeaderFooterView
generically - add extension for
UICollectionView
to dequeue supplementary views generically - add device ID to
UserDefaults
(based on UUID) - add
Array.remove(object:)
for arrays ofEquatable
objects - add extensions for
Bundle
to access often used properties from Info.plist more conveniently - add extensions for
TimeInterval
to work with larger units (minutes, hours, etc.)
Swift 4 support
Now we support Swift 4!
We also removed deprecated stuff
4.2.0
4.1.0
Swift 3 support
Migrated to swift 3 syntax.