From c3fdc6dcdee695e590a33e27ab4255127097bc56 Mon Sep 17 00:00:00 2001 From: Zonily Jame Date: Mon, 27 May 2019 11:16:15 +0800 Subject: [PATCH 1/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 166f6b5..a3663c9 100644 --- a/README.md +++ b/README.md @@ -459,6 +459,7 @@ The concepts behind Reusable has been presented in various articles and talks: * [Using Generics to improve TableView cells](https://alisoftware.github.io/swift/generics/2016/01/06/generic-tableviewcells/) on my blog * [FrenchKit'16 talk: Mixins over Inheritance](https://youtu.be/BSn4jlunn4I) (video) * Same talk was also given at NSSpain'16 ([slides](https://speakerdeck.com/alisoftware/mixins-over-inheritance)) and AppDevCon'17 ([slides](https://speakerdeck.com/alisoftware/mixins-over-inheritance-appdevcon-17)) +* [No more String-typed instantiations on iOS Development](https://medium.com/@zonilyjame/reusable-no-more-string-typed-instantiations-on-ios-development-aa1a4f59201c) # License From 25fd56e45f5c53f186c239115bda40d5e1acea25 Mon Sep 17 00:00:00 2001 From: Zonily Jame Pesquera Date: Thu, 3 Oct 2019 17:14:25 +0800 Subject: [PATCH 2/4] Updated README for updated details on supported Swift Versions and Installation guides. --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a3663c9..ea6c38a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@ A Swift mixin to use `UITableViewCells`, `UICollectionViewCells` and `UIViewCont [![CircleCI](https://circleci.com/gh/AliSoftware/Reusable/tree/master.svg?style=svg)](https://circleci.com/gh/AliSoftware/Reusable/tree/master) [![Platform](http://cocoapod-badges.herokuapp.com/p/Reusable/badge.png)](http://cocoadocs.org/docsets/Reusable) [![Version](http://cocoapod-badges.herokuapp.com/v/Reusable/badge.png)](http://cocoadocs.org/docsets/Reusable) -[![Language: Swift 3 & 4](https://img.shields.io/badge/Swift-3%20%26%204-orange.svg)](https://swift.org) +[![Language: Swift 3](https://img.shields.io/badge/Swift-3-orange)](https://swift.org) +[![Language: Swift 4](https://img.shields.io/badge/Swift-4-orange)](https://swift.org) +[![Language: Swift 5](https://img.shields.io/badge/Swift-5-orange)](https://swift.org) # Requirements @@ -18,9 +20,31 @@ A Swift mixin to use `UITableViewCells`, `UICollectionViewCells` and `UIViewCont | 2.2 & 2.3 | 2.5.1 | | 3.0 (†) | 3.0.0 + | | 4.0 | 4.0.2 + | +| 5.0 | 4.1.0 + | _(†) The Reusable 3.0 code also compiles with Swift 4, you'll need 4.0.2+ only if you're using Carthage for integration_ +## Setting up with Carthage + +[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application. + +To integrate Reusable into your Xcode project using Carthage, specify it in your `Cartfile`: + +```bash +github "AliSoftware/Reusable" +``` + +## Setting up with Cocoapods + +[CocoaPods](https://cocoapods.org/) is a dependency manager for Swift and Objective-C Cocoa projects. + +To integrate Reusable into your Xcode project using Cocoapods, specify it in your `Podspec`: + +```bash +source 'https://github.com/CocoaPods/Specs.git' +pod 'Reusable' +``` + # Introduction This library aims to make it super-easy to create, dequeue and instantiate reusable views anywhere this pattern is used: from the obvious `UITableViewCell` and `UICollectionViewCell` to custom `UIViews`, even supporting `UIViewControllers` from Storyboards. From fbcafad433f148872cfc255c0744c89bc2bf006e Mon Sep 17 00:00:00 2001 From: Olivier Halligon Date: Wed, 23 Oct 2019 23:45:25 +0200 Subject: [PATCH 3/4] Use
for install instructions in README --- README.md | 42 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ea6c38a..c688697 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,9 @@ A Swift mixin to use `UITableViewCells`, `UICollectionViewCells` and `UIViewCont [![Language: Swift 4](https://img.shields.io/badge/Swift-4-orange)](https://swift.org) [![Language: Swift 5](https://img.shields.io/badge/Swift-5-orange)](https://swift.org) -# Requirements +# Installation + +
Requirements: which Reusable version to use for each Swift Version? | Swift Version | Reusable Version | |----------------|--------------------| @@ -24,9 +26,34 @@ A Swift mixin to use `UITableViewCells`, `UICollectionViewCells` and `UIViewCont _(†) The Reusable 3.0 code also compiles with Swift 4, you'll need 4.0.2+ only if you're using Carthage for integration_ -## Setting up with Carthage +
+ +Reusable can be integrated to your Xcode projects using one of the following options: + +
Installation instructions for Swift Package Manager (SPM) + +[Swift Package Manager](https://swift.org/package-manager/) is Apple's decentralized dependency manager to integrate libraries to your Swift projects. It is now fully integrated with Xcode 11 + +To integrate Reusable into your project using SPM, specify it in your `Package.swift` file: + +```swift +let package = Package( + … + dependencies: [ + .package(url: "https://github.com/AliSoftware/Reusable.git", from: "4.1.0"), + ], + targets: [ + .target(name: "YourTarget", dependencies: ["Reusable", …]) + … + ] +) +``` + +
+ +
Installation instructions for Carthage -[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application. +[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager to add pre-built frameworks to your Cocoa application. To integrate Reusable into your Xcode project using Carthage, specify it in your `Cartfile`: @@ -34,17 +61,20 @@ To integrate Reusable into your Xcode project using Carthage, specify it in your github "AliSoftware/Reusable" ``` -## Setting up with Cocoapods +
+ +
Installation instructions for CocoaPods -[CocoaPods](https://cocoapods.org/) is a dependency manager for Swift and Objective-C Cocoa projects. +[CocoaPods](https://cocoapods.org/) is a dependency manager to automate integration of frameworks to your Swift and Objective-C Cocoa projects. To integrate Reusable into your Xcode project using Cocoapods, specify it in your `Podspec`: ```bash -source 'https://github.com/CocoaPods/Specs.git' pod 'Reusable' ``` +
+ # Introduction This library aims to make it super-easy to create, dequeue and instantiate reusable views anywhere this pattern is used: from the obvious `UITableViewCell` and `UICollectionViewCell` to custom `UIViews`, even supporting `UIViewControllers` from Storyboards. From 78ad8e3e150a798a1b25f9c50d64a922dd037dcd Mon Sep 17 00:00:00 2001 From: Olivier Halligon Date: Wed, 23 Oct 2019 23:45:31 +0200 Subject: [PATCH 4/4] Update CHANGELOG --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b07211..c7625be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +* Update the README with up-to-date Swift versions and Installation Instructions. + [@kuyazee](https://github.com/kuyazee) + [@AliSoftware](https://github.com/AliSoftware) + [#95](https://github.com/AliSoftware/Reusable/pull/95) + * Set `APPLICATION_EXTENSION_API_ONLY` build setting on built frameworks. [@AliSoftware](https://github.com/AliSoftware) [#98](https://github.com/AliSoftware/Reusable/pull/98)