Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Releases: slackhq/SlackTextViewController

Version 1.9.6

02 Nov 00:22
Compare
Choose a tag to compare

This release includes many iOS 11 and iPhone X hot fixes.

Features:
  • Allowed color customization in typing indicator. By @dskatz22 (#613)
  • Added support for an optional view to host outlets under the text view. By @dzenbot (#562)
  • Exposed auto-completion variables. By @dzenbot (#561)
Hot Fixes & Enhancements:
  • Fixed the text input not being interactive on iOS 11. By @dzenbot (#624)
  • Fixed iPhone X issue where the text input bar wouldn't expand to the bottom of the screen, below the home indicator. (#619)
  • Fixed scroll view content inset adjustments on iOS 11. By @gim- (#643)
  • Fixed compiler error in example app. By @BasThomas (#629)
  • Fixed content offset for keyboard when uninverted. By @ZAndyL (#542)
Deprecation:
  • Deprecated -shouldProcessTextForAutoCompletion: in favor of -shouldProcessTextForAutoCompletion
CI:
  • Building the SlackTextViewController framework and running basic tests using BuddyBuild CI, against all PRs. By @dzenbot (#640)

Version 1.9.5

03 Oct 23:59
Compare
Choose a tag to compare
Features:
  • Migrated the library to be using NSAttributedString underneath. The text property on SLKTextView uses a NSAttributedString representation based on its font and text color, and doesn't forward to super. By @jacywu07 (#501)
  • As part of the migration to NSAttributedString, new helpers for attributed strings have been added to SLKTextView+SLKAdditions.
  • Introduced a new API to end users to open the auto-completion mode with a given prefix. By @jacywu07 (#506)
  • Exposed the private cacheTextView method. By @acandelaria1 (#513)
Hot Fixes & Enhancements:
  • Updated the sample project to Swift 3! By @cyhsutw (#522)
  • Added a property to allow the user to set how many lines of text SLKTextView's placeholder should have. By @jedmund (#505)
  • Tweaked keyboard height calculations on invert mode. By @ZAndyL (#512)

Version 1.9.4

07 Aug 07:03
Compare
Choose a tag to compare
Hot Fixes & Enhancements:
  • Fixes keyboard status updates inconsistencies, causing sometimes the text input bar not to follow the keyboard.
  • Fixed bottom margin inconsistencies. Thanks @yury! 💪
  • Fixed an edge case where the caret would jump to the end after double-space completion in middle of text. Thanks @mtackes
  • Improved Carthage support

Version 1.9.3

08 May 05:19
Compare
Choose a tag to compare
Hot Fixes & Enhancements:
  • Fixes a regression causing to trigger auto-completion text processing even if no prefix have been registered. This was causing a crash to many. Sorry about that!
  • Ignores keyboard notifications when no valid first responder is detected. This fixes the text input not following the keyboard at times.
  • Now shouldProcessTextForAutoCompletion: requires calling super.

Version 1.9.2

27 Apr 07:26
Compare
Choose a tag to compare

SlackTextViewController is now MIT licensed!

Features & Enhancements:
  • Better Swift 2.2 support with nullability annotations and shiny new Swift sample code. You rock @weijentu 🙇
  • Introduced SLKTextInput protocol: A UITextInput extension to decouple all the text processing features related to auto-completion, to reuse in any text component such as UISearchBar, UITextField, UITextView, etc.
  • Added a new API -shouldProcessTextForAutoCompletion to be able to opt-out from text processing for auto-completion.
  • The registeredPrefixes property are now of type NSSet (instead of NSArray).
  • Added animation to views when switching from a keyboard to a custom input view. Thanks @cyhsutw!
  • Made keyboardStatus public, making it easier to check for the current keyboard state.
Hot Fixes:
  • Fixed a use case where the textInput would not follow the keyboard when dismissing.
  • Improved text caching from the textInput, specially when moving the app to the background (in case the app crashes while being on the background).
  • Fixed misaligned placeholder labels in the textView and out of bounds.
  • Fixed the textInput not growing accordantly to the font size. This was a regressions since version 1.7.1
  • Many, many, many auto-completion bug fixes 💪

Version 1.9.1

23 Mar 00:37
Compare
Choose a tag to compare
Features & Enhancements:
  • Renamed public autoCompleteFormatting to formattingEnabled.
  • Doesn't opt-out anymore from the built-in menu menu items Define, Replace and Share.
  • Made the collectionView's default background color to white.
  • The auto-completion view is now presented above of the table/collection view avoiding to push it up/down every time. Much better UX!
  • Stored all key commands in a instance variable, to avoid recreating the array at every character update.
Hot Fixes:
  • Fixed library from not compiling on iOS 8.
  • Fixed the right button from stretching when animating the constrains. This was broken since iOS 9.
  • Improved UITabBar support by considering hidesBottomBarWhenPushed too.
  • Fixed crash when double tapping the space bar while the textView was empty.
  • Fixed issue causing not to forward all UITextViewDelegate callbacks.

Version 1.9

14 Jan 21:25
Compare
Choose a tag to compare
Deprecations:
  • Deprecated the keyboard panning gesture on iOS 9, to drag the keyboard up and down. More information about this in #361
  • Deprecated isLoupeVisible, which will cause issues when auto-completion mode is active and moving the cursor of the text view. More information about this in #361
Features & Enhancements:
  • Enabled interaction while the right button and the auto-completion view are being presented animatedly
  • Does not scroll to the bottom anymore, if the content size is smaller than its bounds, when shouldScrollToBottomAfterKeyboardShows is enabled.
Hot Fixes:
  • Fixed the keyboard status and custom notifications not being set on the right order.
  • Fixed a crash when calling unrecognised selectors internally in the UITextViewDelegate method implementation, when using other subclasses of UITextView.
  • Fixed UITabBar support. This was a regression. Thanks @LHIOUI for the headsup 👊
  • Fixed cursor dragging issues when deep pressing on the keyboard's trackpad.
  • Fixed the auto-completion layout being busted in 1.8. This was a regression.

Version 1.8

15 Dec 21:55
Compare
Choose a tag to compare
Features & Enhancements:
  • Added Markdown Formatting ⚡️📝, a useful and simple way to allow your users to auto-complete any markdown formatting from within the text input. 1 small step to make writing markdown quicker.
  • The shake gesture now presents an UIAlertController for iOS 8 and above. Still supports the old and good UIAlertView for legacy versions.
Hot Fixes:
  • Fixed some content inset non-sense
  • Scrolling to top now really scrolls to top. Not down. Oopsie.
  • Scrolling down when the keyboard gets presented is also working now. Yay 🎉 !
  • The placeholder font now matches the textView font, for real this time.
  • Avoids reloading the text view when there is no key for cache. Thanks @susieyy!
  • Removed annoying iOS 8 warnings.

Version 1.7.2

15 Dec 22:05
Compare
Choose a tag to compare
Fixes:

Version 1.7.1

15 Dec 22:27
Compare
Choose a tag to compare
Features & Enhancements:
  • Changed how the auto-completion API worked: it now allows asynch auto-completion! Have a look at how to set it up / update it](https://github.com/slackhq/SlackTextViewController#autocompletion)
  • Added keyboard trackpad detection for iOS 9. Used internally for disables auto-completion while its detected, so we avoid crazy things! 👻
  • Improved the magnifying glass detection.
  • Gonna get a nice warning to remind you to super in viewDidLoad now. Fancy!
  • Slowed down bouncy animation by 0.15 seconds
  • Disabled cellLayoutMarginsFollowReadableWidth on iOS 9 for the auto-completion view. No need for large margins, come on!
Fixes: