Post

Replies

Boosts

Views

Activity

Sync IOS cursor to app cursor.
My app controls the cursor within its text area. Upon touching the screen the ios moves the cursor when dragging. The app cursor and the IOS cursor are now out of sync. Is there a way to set the app cursor to the IOS cursor? I have checked many sources to no avail. Thanks for your help. Charlie
2
0
121
2w
Code for undo/redo
Am using textview : This is Apple code from DTS...not functional. class TextStore: ObservableObject { @Published var text = " " let undoManager = UndoManager() @objc func setText(_ newText: String) { let oldText = text text = newText undoManager.registerUndo(withTarget: self, handler: { $0.setText(oldText) }) } } Button(b70){if textStore.undoManager.canUndo{textStore.undoManager.undo()} Button(b71){if textStore.undoManager.canRedo{textStore.undoManager.redo()} } }
0
0
432
Sep ’23
TextView pointer not advancing.
Have created an app for IOS Swift using button values placed in a text View. Pressing any button, the value is inserted at the top left of the view. Pressing another button, the value replaces the first button value. The pointer does not advance. I have dismissed the system keyboard via responder as only button values will be used for text entry and edit. I have spent hours looking at Apple docs, apple forums, Apple programming books and Apple videos. I have filed a TSI on 1 Sep 22 with no response. Any ideas would be deeply appreciated. Thanks...CharlieMO
1
0
375
Sep ’22