Skip to content

Commit 2863536

Browse files
[ExecuTorch] disable text animation in iOS Llama demo app
Differential Revision: D62308551 Pull Request resolved: #5134 Co-authored-by: Scott Wolchok <[email protected]>
1 parent 7c682ef commit 2863536

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

examples/demo-apps/apple_ios/LLaMA/LLaMA/Application/ContentView.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,11 @@ struct ContentView: View {
220220
let count = tokens.count
221221
tokens = []
222222
DispatchQueue.main.async {
223-
withAnimation {
224-
var message = messages.removeLast()
225-
message.text += text
226-
message.tokenCount += count
227-
message.dateUpdated = Date()
228-
messages.append(message)
229-
}
223+
var message = messages.removeLast()
224+
message.text += text
225+
message.tokenCount += count
226+
message.dateUpdated = Date()
227+
messages.append(message)
230228
}
231229
}
232230
if shouldStopGenerating {

0 commit comments

Comments
 (0)