Use the camera for keyboard input in your app

RSS for tag

Discuss the WWDC21 session Use the camera for keyboard input in your app.

View Session

Posts under wwdc21-10276 tag

8 Posts
Sort by:
Post not yet marked as solved
1 Replies
975 Views
Hi, the video was great and on point, but it only featured UIKit apis. 3 years into the SwiftUI transition, I wonder if this is a UIKit only feature or can we also use it if we chose SwiftUI to build our apps ? Thanks
Posted
by mbritto.
Last updated
.
Post not yet marked as solved
0 Replies
711 Views
Issue:- When getting remote notification have to show image using the imageurl in payload. In Android it’s working fine once we changed the payload. In iOS image not showing in push notification. Issue facing on Notification Service Extension:- I have added the notification extension and added the code for modifying notification content. This configuration is working fine in native iOS app. Added the same in the flutter iOS project but there it won’t work. While receiving push notification the extension is not getting called. Just receiving normal notification only. I have tried many scenarios to sort out this issue. Still it’s not working. Steps i’ve followed: Added code to get notification permission Added Notification extension to the project Used automatically manage signing for profile configuration Added code to modify notification Added imageURL and mutable-content keys in payload Added the project and payload screenshots here
Posted
by Vijay_dev.
Last updated
.
Post not yet marked as solved
0 Replies
517 Views
Menu {                 Button(action: {                     // TODO: support live text                 }) {                     Label("Live Text", systemImage: "camera.viewfinder")                 }             } label: {                 Text("Hi")             } How can I present the live text view in swiftUI
Posted
by ZhuHaoyu.
Last updated
.
Post not yet marked as solved
3 Replies
966 Views
I have implemented Text on camera feature in two ways UITextField with UITextContentType and UIKeyboardType as emailAddress, which helps to show a button in the keyboard to open the camera for capturing email. UITextField with basic text. I implemented a custom UIButton to open the camera for capturing text for this field. In both cases I'm not getting callback in any of these functions insertText(_ text) setMarkedText(markedText:, selectedRange:) and unmarkText() after user taps Insert Text button. Help me.
Posted Last updated
.
Post not yet marked as solved
0 Replies
896 Views
CameraUI -[CAMPriorityNotificationCenter _removeObserver:fromObserversByName:] i am seeing crashes on firebase and here is the stacktrace Fatal Exception: NSGenericException *** Collection <__NSArrayM: 0x28024a0a0> was mutated while being enumerated. keyboard_arrow_up 0 CoreFoundation __exceptionPreprocess 2 arrow_drop_down CoreFoundation -[__NSSingleObjectEnumerator initWithObject:collection:] arrow_right 3 CameraUI -[CAMPriorityNotificationCenter _removeObserver:fromObserversByName:] 4 CameraUI -[CAMPriorityNotificationCenter removeObserver:] 13 arrow_drop_down libsystem_pthread.dylib start_wqthread Crashed: com.google.firebase.crashlytics.ios.exception SIGABRT ABORT 0x00000001c1eb7334 keyboard_arrow_up 0 FirebaseCrashlytics FIRCLSProcess.c - Line 393 FIRCLSProcessRecordAllThreads + 393 1 FirebaseCrashlytics FIRCLSProcess.c - Line 424 FIRCLSProcessRecordAllThreads + 424 2 FirebaseCrashlytics FIRCLSHandler.m - Line 34 FIRCLSHandler + 34 3 FirebaseCrashlytics FIRCLSException.mm - Line 218 __FIRCLSExceptionRecord_block_invoke + 218 4 libdispatch.dylib _dispatch_client_callout + 20 5 arrow_drop_down libdispatch.dylib _dispatch_lane_barrier_sync_invoke_and_complete + 60 6 FirebaseCrashlytics FIRCLSException.mm - Line 225 FIRCLSExceptionRecord + 225 7 FirebaseCrashlytics FIRCLSException.mm - Line 111 FIRCLSExceptionRecordNSException + 111 8 FirebaseCrashlytics FIRCLSException.mm - Line 279 FIRCLSTerminateHandler() + 279 9 libc++abi.dylib std::__terminate(void (*)()) + 20 24 arrow_drop_down libsystem_pthread.dylib start_wqthread + 8 This started happening in 14.4 and above and was working fine in the previous version and am recently seeing an increase in the crash. Is it an OS or am i doing something wrong
Posted Last updated
.