SwifterSwift v5.0.0 Release Notes
Release Date: 2019-03-31 // about 5 years ago-
โ Added
- ๐ Swift 5.0 Support
- Updated the project to Xcode 10.2
- Removed unnecessary
public
statements.
- ๐ง Linux Support
- Support for Linux running Swift 5.0 using Swift Package Manager.
- UIApplication:
- Added
inferredEnvironment
to get current inferred app environment. by omaralbeik - Added
displayName
to get application name. by omaralbeik - Added
buildNumber
to get application build number. by omaralbeik - Added
version
to get application version number. by omaralbeik
- Added
- Optional:
- Added
nonEmpty
to get the collection only if it is not nill and not empty. by omaralbeik
- Added
- FileManager:
- UILabel:
- Added
init(text:style)
to create aUILabel
with a text and font style. #607 by marcocapano
- Added
- UIViewController
- Added
presentPopover(_:sourcePoint:size:delegate:animated:completion:)
method to quickly present aUIViewController
as a popover. #593 by marcocapano
- Added
- Sequence:
- Added
duplicates()
for getting the duplicated elements in a sequence. #605 by dylancfe15
- Added
- Date:
- โ Added
tomorrow
computed property to get tomorrow's date avoiding callingadding(_:value:)
function. (Completes PR #578) #587 by AlexeiGitH - Dictionary:
- Added
Dictionary[path:]
subscript for deep fetching/setting nested values. #574 by @calebkleveter
- Added
- UIColor:
- Added
whatsApp
color constant to social struct. #581 by staffler-xyz
- Added
- DispatchQueue:
- BidirectionalCollection:
- BinaryFloatingPointExtensions:
- UIActivity:
- Added
ActivityType
constants for iCloud Drive, WhatsApp, LinkedIn and XING. #580 by staffler-xyz
- Added
- MKMapView
- Added 'register(annotationViewWithClass:)
,
dequeueReusableAnnotationView(withClass:)and
dequeueReusableAnnotationView(withClass:annotation)` methods. #629 by staffler-xyz
- Added 'register(annotationViewWithClass:)
๐ Changed
- Character:
- Added more cases to
isEmoji
. by omaralbeik
- Added more cases to
- String:
- Added more cases to
isEmoji
. by omaralbeik - Made
camelize
,latinize
,reverse
,slice
,trim
,truncate
,urlDecode
,urlEncode
,padStart
, andpadEnd
return adiscardableResult
self. by omaralbeik
- Added more cases to
- Examples:
- StringProtocol:
- Removing Index constraint on
commonSuffix
extension and improving performance and tests. #606 by LucianoPAlmeida.
- Removing Index constraint on
- RangeReplaceableCollection:
Array
extensionskeep(while: )
,take(while: )
andskip(while:)
are nowRangeReplaceableCollection
extensions. #634 by LucianoPAlmeida.
- Date:
- Fixed
yesterday
computed property to be calculated using Calendar.date(byAdding:to:) instead of date.addingTimeInterval(-86400) #641 by AlexeiGitH.
- Fixed
๐ Fixed
- UIImageView:
- Fixed
download
function to useunowned self
. by omaralbeik
- Fixed
- Installation:
- UIImage:
- Fixed
cropped(to:)
size checking. #575 by ilyahal - Fixed
tint(_ color:, blendMode:)
upside-down image. #639 by LucianoPAlmeida.
- Fixed
- NSAttributedString:
- Fixed
attributes
property crash when the string is empty. #617 by LucianoPAlmeida.
- Fixed
- Date:
- Fixed
yesterday
computed property to be calculated using Calendar.date(byAdding:to:) instead of date.addingTimeInterval(-86400) #641 by AlexeiGitH. - Fixed
tomorrow
computed property to be calculated using Calendar.date(byAdding:to:) instead of date.addingTimeInterval(86400) #642 by AlexeiGitH.
- Fixed
โ Removed
- SwifterSwift:
- Breaking Change Removed
SwifterSwift
by omaralbeik.
- Breaking Change Removed
- Collection:
- Removed
firstIndex(where: )
,firstIndex(of:)
,lastIndex(where: )
,lastIndex(of:)
which are no longer needed. #637 by marcocapano
- Removed
- Date:
CI
- โก๏ธ Updated Travis to use the new
xcode10.2
osx_image. - โ Added Fastlane to automate the releasing process for maintainers.
- ๐ Swift 5.0 Support