Skip to content

Commit

Permalink
Fixed crash and composer height and updated podspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirsplatrick committed Jan 18, 2018
1 parent 22ec0a5 commit 9b75af0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TwitterKit/TwitterKit.podspec → TwitterKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Pod::Spec.new do |s|
s.social_media_url = "https://twitter.com/TwitterDev"
s.authors = "Twitter"
s.platform = :ios, "9.0"
s.source = { :http => "https://ton.twimg.com/syndication/twitterkit/ios/#{s.version}/TwitterKit.zip" }
s.vendored_frameworks = "iOS/TwitterKit.framework"
s.source = { :git => 'git@github.com:buzzfeed/twitter-kit-ios.git', :tag => 'buzzfeed-3.3.0' }
s.source_files = 'TwitterKit/TwitterKit/*.{h,m}'
s.license = { :type => "Commercial", :text => "Twitter Kit: Copyright Twitter, Inc. All Rights Reserved. Use of this software is subject to the terms and conditions of the Twitter Kit Agreement located at https://dev.twitter.com/overview/terms/twitterkit and the Developer Agreement located at https://dev.twitter.com/overview/terms/agreement. OSS: https://github.com/twitter/twitter-kit-ios/blob/master/OS_LICENSES.md"}
s.resources = ["iOS/TwitterKit.framework/TwitterKitResources.bundle", "iOS/TwitterKit.framework/TwitterShareExtensionUIResources.bundle"]
s.frameworks = "CoreText", "QuartzCore", "CoreData", "CoreGraphics", "Foundation", "Security", "UIKit", "CoreMedia", "AVFoundation", "SafariServices"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ - (void)presentVideo:(TWTRVideoPlaybackConfiguration *)videoConfig fromViewContr

- (void)presentMediaViewController:(UIViewController<TWTRMediaContainerPresentable> *)mediaViewController fromView:(UIView *)view presentingViewController:(UIViewController *)presentingViewController
{
if (mediaViewController == nil) {
return;
}

TWTRMediaContainerViewController *mediaContainer = [[TWTRMediaContainerViewController alloc] initWithMediaViewController:mediaViewController];

// Delay this for a short moment to avoid flickering when showing the view.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ - (void)_tseui_updateCharacterCount
self.characterCounterLabel.textColor = ([self.tweet isNearOrOverCharacterLimit]) ? _characterCountOverLimitColor : _characterCountBelowLimitColor;
}

- (void)layoutSubviews
{
[super layoutSubviews];

[self _tseui_updateLineCount];
}

- (void)_tseui_updateLineCount
{
NSUInteger textViewNumberOfLines = _textView.numberOfLines;
Expand Down

0 comments on commit 9b75af0

Please sign in to comment.