From dd265987fcd07508e4b256c2b2d47eba2cdedfc9 Mon Sep 17 00:00:00 2001 From: Huy Nguyen Date: Sun, 4 Mar 2018 18:17:01 +0000 Subject: [PATCH] Add Podspec and update README (#16) --- AsyncMessagesViewController.podspec | 20 ++++++++++++++++++++ README.md | 14 ++++++-------- 2 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 AsyncMessagesViewController.podspec diff --git a/AsyncMessagesViewController.podspec b/AsyncMessagesViewController.podspec new file mode 100644 index 0000000..2300187 --- /dev/null +++ b/AsyncMessagesViewController.podspec @@ -0,0 +1,20 @@ +Pod::Spec.new do |spec| + spec.name = 'AsyncMessagesViewController' + spec.version = '0.1' + spec.license = { :type => 'MIT', :file => 'LICENSE' } + spec.homepage = 'https://github.com/nguyenhuy/AsyncMessagesViewController' + spec.authors = { 'Huy Nguyen' => 'http://huytnguyen.me' } + spec.summary = 'A smooth, responsive and flexible messages UI library for iOS apps.' + spec.source = { :git => 'https://github.com/nguyenhuy/AsyncMessagesViewController.git', :tag => spec.version.to_s } + spec.module_name = 'AsyncMessagesViewController' + spec.header_dir = 'AsyncMessagesViewController' + spec.documentation_url = 'https://github.com/nguyenhuy/AsyncMessagesViewController' + spec.platform = :ios + spec.ios.deployment_target = '9.0' + spec.swift_version = '4.0' + spec.requires_arc = true + spec.source_files = 'Source/**/*.swift' + spec.ios.resource_bundle = { spec => 'Source/Assets/AsyncMessagesViewController.xcassets' } + spec.dependency 'Texture', '2.6' + spec.dependency 'SlackTextViewController', '1.9.6' +end diff --git a/README.md b/README.md index eee8965..7ec5a77 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # AsyncMessagesViewController -A smooth, responsive and flexible messages UI library for iOS. Built on top of the awesome [AsyncDisplayKit](https://github.com/facebook/AsyncDisplayKit) framework, it takes full advantage of asynchronous sizing, (non-auto) layout and text rendering to deliver a 5x fps (subject to increase) scrolling experience. +A smooth, responsive and flexible messages UI library for iOS apps. Built on top of the awesome [Texture](http://github.com/TextureGroup/Texture/) (formerly AsyncDisplayKit) framework, it takes full advantage of asynchronous layout and rendering to deliver a "butter smooth" scrolling experience. ![Screenshot1](Screenshots/screenshot1.png)    ![Screenshot2](Screenshots/screenshot2.png) ## Dependencies -* [AsyncDisplayKit](https://github.com/facebook/AsyncDisplayKit). -* [SlackTextViewController](https://github.com/slackhq/SlackTextViewController) (to take advantages of its awesome features and customizations. Why reinvent the wheel?). +* [Texture](http://github.com/TextureGroup/Texture/). +* [SlackTextViewController](https://github.com/slackhq/SlackTextViewController) ## Requirements -* iOS 8 and later. +* iOS 9 and later. +* Swift 4. * ARC. -* Swift. ## Installation ### From [CocoaPods](http://cocoapods.org): @@ -20,8 +20,6 @@ A smooth, responsive and flexible messages UI library for iOS. Built on top of t pod 'AsyncMessagesViewController' ```` -Can't do it? Well I'm sorry but the pod won't be available until AsyncDisplayKit hits v2.0. - ### Without CocoaPods Copy the `Source\` directory to your project and install all dependencies. @@ -46,7 +44,7 @@ Copy the `Source\` directory to your project and install all dependencies. ## Customizations * Custom bubble node: - * Please read [this guide](http://asyncdisplaykit.org/docs/subclassing.html) on writting a custom `ASDisplayNode`. + * Please read [this guide](http://texturegroup.org/docs/subclassing.html) on subclassing `ASDisplayNode`. * Implement a factory that conforms to `MessageBubbleNodeFactory` protocol. * Inject your factory to `DefaultAsyncMessagesCollectionViewDataSource` via its initializer. * Inject the data source to `AsyncMessagesViewController` (also via its initializer).