-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrate Podfile to Texture 2 and SlackTextViewController 1.9.6 * Migrate code to swift 4, Texture 2 and xcode 9 * Remove bridging header * Add default collection delegate implementation
- Loading branch information
Showing
19 changed files
with
689 additions
and
1,259 deletions.
There are no files selected for viewing
1,697 changes: 543 additions & 1,154 deletions
1,697
AsyncMessagesViewController.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
source 'https://github.com/CocoaPods/Specs.git' | ||
|
||
platform :ios, '8.0' | ||
platform :ios, '9.0' | ||
target 'Example' do | ||
use_frameworks! | ||
|
||
pod 'AsyncDisplayKit', '1.9.90' | ||
pod 'SlackTextViewController', '1.9.5' | ||
|
||
# Used by example target | ||
pod 'LoremIpsum', :git => 'https://github.com/nguyenhuy/LoremIpsum.git', :branch => 'master' | ||
pod 'Texture', '2.6' | ||
pod 'SlackTextViewController', '1.9.6' | ||
|
||
# Used by example target | ||
pod 'LoremIpsum', :git => 'https://github.com/nguyenhuy/LoremIpsum.git', :branch => 'master' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
Source/Controllers/DefaultAsyncMessagesCollectionViewDelegate.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// DefaultAsyncMessageDelegate.swift | ||
// Example | ||
// | ||
// Created by Tien Nguyen on 3/4/18. | ||
// Copyright © 2018 Huy Nguyen. All rights reserved. | ||
// | ||
|
||
import AsyncDisplayKit | ||
|
||
class DefaultAsyncMessagesCollectionViewDelegate: NSObject, ASCollectionDelegate { | ||
|
||
func collectionNode(_ collectionNode: ASCollectionNode, constrainedSizeForItemAt indexPath: IndexPath) -> ASSizeRange { | ||
let width = collectionNode.bounds.width; | ||
return ASSizeRangeMake(CGSize(width: width, height: 0), CGSize(width: width, height: CGFloat.greatestFiniteMagnitude)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.