Skip to content

1.1.0

Choose a tag to compare

@AppleArealidea AppleArealidea released this 01 Apr 15:17
· 6 commits to main since this release

ARGrowingTextView 1.1.0

A major update that eliminates deprecation warnings for modern iOS versions, upgrades dependencies, fixes bugs, and significantly improves documentation.

⚡ Dependency Updates

  • Updated ARMarkdownTextStorage to version 2.0.0

🔧 Modern API Migration

  • Migrated from deprecated UIMenuController to UIEditMenuInteraction (iOS 16+); added strikethrough localization
  • Migrated from deprecated traitCollectionDidChange(_:) to registerForTraitChanges (iOS 17+)
  • Replaced deprecated MobileCoreServices with CoreServices and UniformTypeIdentifiers

🐛 Bug Fixes

  • Fixed pasting text with simultaneous bold + italic formatting
  • Placeholder rect is now correctly calculated from textContainerInset
  • Removed isScrollable property that conflicted with internal scroll logic
  • Moved rendering logic from draw(_:) to layoutSubviews for correct behavior
  • Removed dead code targeting iOS 7, unused properties, and hardcoded placeholder string
  • Fixed localization key prefix (HP → AR)
  • Wrapped debug print statements in #if DEBUG

✨ Improvements

  • Added public access to init(frame:)
  • Removed empty DocC catalog
  • Fixed file names in source file headers
  • Updated author name in file headers

📖 Documentation

  • Added migration guide from HPGrowingTextView
  • Added Acknowledgments section crediting HPGrowingTextView as the original inspiration
  • Added demo illustration to README
  • Cleaned up outdated comments (iOS 5 references, HPGrowingTextView mentions in code)
  • Fixed typo in height calculation comment (smalles → smaller)

Installation

dependencies: [
    .package(url: "https://github.com/AppleArealidea/ARGrowingTextView.git", from: "1.1.0")
]