Post

Replies

Boosts

Views

Activity

Cursing the cursor.
There are 2 text entry points, a text view and a text field. The text view Compose disallows touch. Enter text in the text field, return to the text view and the text view cursor is gone. Is there a way to reset the pointer to visible using a xcode button? My workaround is to change views, return (the cursor is visible) then restore the text. Which is an annoying process. The app myownkeyboard PAD is free. The Compose view has the problem. Any suggestions would be appreciated. Thanks.....Charlie 10apr2026
Topic: UI Frameworks SubTopic: General
0
0
63
3w
IOS Swift touch screen issue
MyOwnKeyboard Pad app has 4 text views with textfields that use touch screen for editing. There is one view, Compose, that has a textfield and a textview (UIRepresentable). The app enters text into the view using textfield buttons. The app has total control of editing. When entering text if the screen is touched it conflicts the cursor position and creates an "out of bounds" failure. In that view the app does not need any touch events. I need a method in UIRepresentable to disable the touch event. I am not familiar with UIRepresentable as this code was provided by Apple to solve a 16 bit unicode character issue. What would be the code to disable touch events in the UIRepresentable compose view. The app is free for a while until this problem is fixed. It is for iPads 11"+ . The name in the app store is MyOwnKeyboard Pad. I know some great engineer will find the answer. DTS tried. Thanks to all, maybe I'll sell some. Charlie 25mar26
1
0
151
Mar ’26
Separate iPhone and iPad apps from each other Xcode
Without knowing is how two apps shares the resources. The problem is both are designed to be landscape with all screen orientations the same. The validated ipad process fails that it must have both the same screen orientations as the iPhone. The iPad app review fails in Apple Connect, with screen shots portrait clipped. Yet the iPhone was accepted with the same orientations. They both start in portrait which is ok, just turn them to landscape and they look fine. I have seen many apps that go back and forth and you know which orientation you want. Just turn 90 degrees. Is there a resolution to this situation? Charlie Coupe
Topic: UI Frameworks SubTopic: General
0
0
84
Sep ’25
IOS cursor control
My app controls the cursor movement in a text view on iPhone and iPads. On screen touch, the IOS cursor position is out of sync with the app cursor position. Is there a way to find out, on screen touch, where the ios cursor positition is and update the app cursor to the ios cursor position? When they are out of sync, the user has to move the cursor to the startIndex and navigate from there. Frustating! I have looked at many programming books, forums, and internet search with nothing to no avail. Any help will be greatly appreciated. The app names are SummaGramPhonex and SummaGramIPAD11 and SummaGramIPAD13. Thanks. Charlie 3Sep25
0
0
238
Sep ’25
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
3
0
430
Jul ’25
Cursor position sync between IOS touch screen and app textview.
The app puts button values into a text view area and controls the cursor. Upon an IOS touch screen, cut or paste, the IOS cursor loses sync with the app cursor causing an address out of bounds and fails. The IOS cut or paste changes the cursor position and the text.endIndex address by shrinking or expanding the text field. IOS doesn't know about the app cursorPosition. If IOS could update the app cursor position and the text.endIndex position would solve the problem. Or if the app knew about the IOS change could update the app cursor position and the text.endIndex. The current work around is the user sets the cursor to the text.startIndex using an app navigating button before the touch screen. The app does not fail. The user then navigates the cursor using arrow buttons to another position. To see this happen download the free SummaGramIPAD Trial.(13") TSIs have been requested with engineer suggestions for well over one year. I hope someone could figure this out. I just finished SummaGram iPhone and would like to host it. Thanks for your help. Charlie
0
0
127
Jul ’25
iPadOS cursor synchronized with app cursor control
The cursor is moved by the app in a Text area. iPadOS allows touch screen cursor movement to cut, copy, paste and insert text. When text is highlighted via handle controls, and cut requested, the app fails with cursor out of bounds. The app cursor was not moved in sync with IOS. It is obvious IOS does not sync with the app cursor position and the update of the endIndex.
0
0
505
Jul ’24
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
609
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
457
Oct ’22
Cursing the cursor.
There are 2 text entry points, a text view and a text field. The text view Compose disallows touch. Enter text in the text field, return to the text view and the text view cursor is gone. Is there a way to reset the pointer to visible using a xcode button? My workaround is to change views, return (the cursor is visible) then restore the text. Which is an annoying process. The app myownkeyboard PAD is free. The Compose view has the problem. Any suggestions would be appreciated. Thanks.....Charlie 10apr2026
Topic: UI Frameworks SubTopic: General
Replies
0
Boosts
0
Views
63
Activity
3w
IOS Swift touch screen issue
MyOwnKeyboard Pad app has 4 text views with textfields that use touch screen for editing. There is one view, Compose, that has a textfield and a textview (UIRepresentable). The app enters text into the view using textfield buttons. The app has total control of editing. When entering text if the screen is touched it conflicts the cursor position and creates an "out of bounds" failure. In that view the app does not need any touch events. I need a method in UIRepresentable to disable the touch event. I am not familiar with UIRepresentable as this code was provided by Apple to solve a 16 bit unicode character issue. What would be the code to disable touch events in the UIRepresentable compose view. The app is free for a while until this problem is fixed. It is for iPads 11"+ . The name in the app store is MyOwnKeyboard Pad. I know some great engineer will find the answer. DTS tried. Thanks to all, maybe I'll sell some. Charlie 25mar26
Replies
1
Boosts
0
Views
151
Activity
Mar ’26
Separate iPhone and iPad apps from each other Xcode
Without knowing is how two apps shares the resources. The problem is both are designed to be landscape with all screen orientations the same. The validated ipad process fails that it must have both the same screen orientations as the iPhone. The iPad app review fails in Apple Connect, with screen shots portrait clipped. Yet the iPhone was accepted with the same orientations. They both start in portrait which is ok, just turn them to landscape and they look fine. I have seen many apps that go back and forth and you know which orientation you want. Just turn 90 degrees. Is there a resolution to this situation? Charlie Coupe
Topic: UI Frameworks SubTopic: General
Replies
0
Boosts
0
Views
84
Activity
Sep ’25
IOS cursor control
My app controls the cursor movement in a text view on iPhone and iPads. On screen touch, the IOS cursor position is out of sync with the app cursor position. Is there a way to find out, on screen touch, where the ios cursor positition is and update the app cursor to the ios cursor position? When they are out of sync, the user has to move the cursor to the startIndex and navigate from there. Frustating! I have looked at many programming books, forums, and internet search with nothing to no avail. Any help will be greatly appreciated. The app names are SummaGramPhonex and SummaGramIPAD11 and SummaGramIPAD13. Thanks. Charlie 3Sep25
Replies
0
Boosts
0
Views
238
Activity
Sep ’25
'init(contentsOfFile:)' was deprecated in iOS 18
content = try String(contentsOfFile: filepath) is the following warning. 'init(contentsOfFile:)' was deprecated in iOS 18: Use init(contentsOfFile:encoding:) instead After internet searching I could find an answer. I would appreciate a rewrite of my code line to get rid of 31 warnings. Thanks a LOT Charlie
Replies
6
Boosts
0
Views
287
Activity
Jul ’25
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
Replies
3
Boosts
0
Views
430
Activity
Jul ’25
Cursor position sync between IOS touch screen and app textview.
The app puts button values into a text view area and controls the cursor. Upon an IOS touch screen, cut or paste, the IOS cursor loses sync with the app cursor causing an address out of bounds and fails. The IOS cut or paste changes the cursor position and the text.endIndex address by shrinking or expanding the text field. IOS doesn't know about the app cursorPosition. If IOS could update the app cursor position and the text.endIndex position would solve the problem. Or if the app knew about the IOS change could update the app cursor position and the text.endIndex. The current work around is the user sets the cursor to the text.startIndex using an app navigating button before the touch screen. The app does not fail. The user then navigates the cursor using arrow buttons to another position. To see this happen download the free SummaGramIPAD Trial.(13") TSIs have been requested with engineer suggestions for well over one year. I hope someone could figure this out. I just finished SummaGram iPhone and would like to host it. Thanks for your help. Charlie
Replies
0
Boosts
0
Views
127
Activity
Jul ’25
iPadOS cursor synchronized with app cursor control
The cursor is moved by the app in a Text area. iPadOS allows touch screen cursor movement to cut, copy, paste and insert text. When text is highlighted via handle controls, and cut requested, the app fails with cursor out of bounds. The app cursor was not moved in sync with IOS. It is obvious IOS does not sync with the app cursor position and the update of the endIndex.
Replies
0
Boosts
0
Views
505
Activity
Jul ’24
cursor stopped blinking
App is Xcode swiftUI on iPad using textview. The cursor is invisible yet it moves "underneath". How to make it visible. The app textview input is button characters and coexists with a Magic Keyboard where the cursor is visible.
Replies
0
Boosts
0
Views
640
Activity
Jun ’24
Change button title
Using Swift/IOS/iPad Xcode. How to change button text programmatically post app start. If the button text is X change it to Y.
Replies
2
Boosts
0
Views
1.3k
Activity
Sep ’23
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()} } }
Replies
0
Boosts
0
Views
609
Activity
Sep ’23
Change Button attributes in iOS
How to change button attributes in iOS swift programmatically after app starts.
Replies
1
Boosts
0
Views
634
Activity
Aug ’23
iOS autorepeat code for character buttons and editing buttons.
Autorepeat key works in Notes for iPads, iPhone , but need code in Xcode for an iOS application using buttons as text input and text editing. Could not find any code. Thanks for replying Charlie
Replies
0
Boosts
0
Views
720
Activity
Aug ’23
swift UI. IOS
How to button code "delete" text from textview backward and forward How to button code scroll up and down.
Replies
0
Boosts
0
Views
591
Activity
Feb ’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
Replies
1
Boosts
0
Views
457
Activity
Oct ’22