Skip to content
Native Swift extensions.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
Tests
YYSwift.xcodeproj
.gitignore
LICENSE
Package.swift
README.md

README.md

YYSwift

License MIT  Carthage compatible 

YYSwift is a collection of native Swift extensions, with handy methods, syntactic sugar, and performance improvements for wide range of primitive data types, UIKit and Cocoa classes for iOS, macOS, tvOS and watchOS.

Requirements:

  • iOS 10.0+ / tvOS 10.0+ / watchOS 4.0+ / macOS 10.10+
  • Xcode 10.2.1+
  • Swift 5.0+

Installation

Carthage

Add github "Asura19/YYSwift" to your Cartfile

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/Asura19/YYSwift.git", from: "1.1.5")
]

Manually

Add the extensions folder to your Xcode project to use all extensions, or a specific extension.

Notice

I try to write a pure Swift library of YYKit, but after a few days of work, I found this excellent project - SwifterSwift, it had implemented many functions of YYKit. Should I continue? To do, or not to do, that is the question. OK, finally, I carried on this, because there are some differences between them, I combined them together, some extentions were copied directly from SwifterSwift and I rewrited part of YYKit in Swift. In addition, I found some issues in SwifterSwift and contributed to the project. During this time I also practiced a lot and improved my ability of Swift.

You can’t perform that action at this time.