diff --git a/Sources/TextStory/NSTextStorage+TextStoring.swift b/Sources/TextStory/NSTextStorage+TextStoring.swift index c72a9cf..1401a83 100644 --- a/Sources/TextStory/NSTextStorage+TextStoring.swift +++ b/Sources/TextStory/NSTextStorage+TextStoring.swift @@ -23,6 +23,6 @@ extension NSTextStorage: TextStoring { return nil } - return attributedSubstring(from: range).string + return (string as NSString).substring(with: range) } }