Repository navigation
1.1.0
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
UIMenuControllerto 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
isScrollableproperty that conflicted with internal scroll logic - Moved rendering logic from
draw(_:)tolayoutSubviewsfor correct behavior - Removed dead code targeting iOS 7, unused properties, and hardcoded placeholder string
- Fixed localization key prefix (
HP → AR) - Wrapped debug
printstatements 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")
]