Post

Replies

Boosts

Views

Activity

Writing tools options
Hi team, We have implemented a writing tool inside a WebView that allows users to type content in a textarea. When the "Show Writing Tools" button is clicked, an AI-powered editor opens. After clicking the "Rewrite" button, the AI modifies the text. However, when clicking the "Replace" button, the rewritten text does not update the original textarea. Kindly check and help me showButton.addTarget(self, action: #selector(showWritingTools(_:)), for: .touchUpInside) @available(iOS 18.2, *) optional func showWritingTools(_ sender: Any) Note: same cases working in TextView pfa
0
0
307
Mar ’25
Force rotation not working properly
We rotate the portrait to landscape then we force rotate to portrait app rotates but the screen seems to be divided into two parts My sample code class OrientationHelper { static func lockOrientation(_ orientation: UIInterfaceOrientationMask) { if let delegate = UIApplication.shared.delegate as? AppDelegate { delegate.orientationLock = orientation } } static func lockOrientation(_ orientation: UIInterfaceOrientationMask, andRotateTo rotateOrientation: UIInterfaceOrientation) { self.lockOrientation(orientation) DispatchQueue.main.async { UIDevice.current.setValue(rotateOrientation.rawValue, forKey: "orientation") UIViewController.attemptRotationToDeviceOrientation() } } } // Appdelegte var orientationLock = UIInterfaceOrientationMask.portrait func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask { return orientationLock }
Topic: UI Frameworks SubTopic: UIKit
2
0
349
Mar ’25
Writing tools options
Hi team, We have implemented a writing tool inside a WebView that allows users to type content in a textarea. When the "Show Writing Tools" button is clicked, an AI-powered editor opens. After clicking the "Rewrite" button, the AI modifies the text. However, when clicking the "Replace" button, the rewritten text does not update the original textarea. Kindly check and help me showButton.addTarget(self, action: #selector(showWritingTools(_:)), for: .touchUpInside) @available(iOS 18.2, *) optional func showWritingTools(_ sender: Any) Note: same cases working in TextView pfa
Replies
0
Boosts
0
Views
307
Activity
Mar ’25
Force rotation not working properly
We rotate the portrait to landscape then we force rotate to portrait app rotates but the screen seems to be divided into two parts My sample code class OrientationHelper { static func lockOrientation(_ orientation: UIInterfaceOrientationMask) { if let delegate = UIApplication.shared.delegate as? AppDelegate { delegate.orientationLock = orientation } } static func lockOrientation(_ orientation: UIInterfaceOrientationMask, andRotateTo rotateOrientation: UIInterfaceOrientation) { self.lockOrientation(orientation) DispatchQueue.main.async { UIDevice.current.setValue(rotateOrientation.rawValue, forKey: "orientation") UIViewController.attemptRotationToDeviceOrientation() } } } // Appdelegte var orientationLock = UIInterfaceOrientationMask.portrait func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask { return orientationLock }
Topic: UI Frameworks SubTopic: UIKit
Replies
2
Boosts
0
Views
349
Activity
Mar ’25
How to disable screen record/capture?
how do I stop screen recorder/capture on iOS 14. have any native API for this?. have privacy/security concern for my app so kindly help me. Thanks
Replies
1
Boosts
0
Views
925
Activity
Jun ’24
ContextMenu with Drag&Drop in UITableView
I am trying to implement both ContextMenu and Drag&Drop in UITableView like Apple home screen or Photo app, but the contextual menu prevent dragging in iOS. I didn’t achieve this. apple provide any separate API for this?
Replies
1
Boosts
0
Views
651
Activity
Jun ’24
Rearrange table view cell with contextual menu
Hi team, we have any separate API for dragging with contextual menu?. kindly update it.
Replies
0
Boosts
0
Views
525
Activity
Jun ’24