wordpress-mobile / wordpress-mobile/AztecEditor-iOS
`UITextWritingDirection` deprecation warning
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 669
- Forks
- 153
- Avg merge
- 11h 27m
- Merged PRs (30d)
- 4
Description
Since iOS13.0 the usage of the UITextWritingDirection typealias is deprecated in favour of the existing underlying NSWritingDirection data type: https://developer.apple.com/documentation/uikit/uitextwritingdirection
Since we use these as the return type when defining methods like baseWritingDirectionForPosition in the header file, it causes warnings in the editor where this dependency is used. For example in WCiOS:
'UITextWritingDirection' is deprecated: first deprecated in iOS 13.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the header declarations for methods such as baseWritingDirectionForPosition that use UITextWritingDirection, then inspect the surrounding API definitions. Update the deprecated type usage to the underlying type described in the issue and verify that the dependency no longer produces the iOS 13 deprecation warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100