Skip to content

Commit

Permalink
fix: 投稿編集時に前のテキストが引き継がれない不具合を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rinsuki committed Apr 3, 2024
1 parent e439b1c commit 6b22193
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/iOS/App/Screens/NewPost/NewPostViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ class NewPostViewController: UIViewController, UITextViewDelegate, ObservableObj
contentView.textInput.becomeFirstResponder()

if let userActivity {
contentView.textInput.text = userActivity.newPostCurrentText ?? ""
if let newPostCurrentText = userActivity.newPostCurrentText {
contentView.textInput.text = newPostCurrentText
}
// メンションとかの後を選択する
let nowCount = contentView.textInput.text.nsLength
DispatchQueue.main.async {
Expand Down

0 comments on commit 6b22193

Please sign in to comment.