Share Sheet: set cursor before shared content

This commit is contained in:
Thomas Ricouard 2024-02-10 11:32:58 +01:00
parent e7bc857231
commit d8e6e6cfb1

View file

@ -531,8 +531,8 @@ extension StatusEditor {
}
}
if !initialText.isEmpty {
statusText = .init(string: initialText)
selectedRange = .init(location: statusText.string.utf16.count, length: 0)
statusText = .init(string: "\n\n\(initialText)")
selectedRange = .init(location: 0, length: 0)
}
}
}