Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

URL scheme in Info.plist
I use the following entry in Info.plist to make the program handle the tidal url scheme, but it launches the program without the URL itself. The entry is: keyCFBundleURLTypes/key array dict keyCFBundleTypeRole/key stringViewer/string keyCFBundleURLName/key stringorg.strawberrymusicplayer.strawberry/string keyCFBundleURLSchemes/key array stringtidal/string /array /dict /array Full Info.plist here: https://github.com/strawberrymusicplayer/strawberry/blob/master/dist/macos/Info.plist.in The URL looks like this: tidal://login/auth With the url parameters that contains the authorization code, the total length is 692 characters. It works fine on Linux and Windows, but not on macOS. I've tested both with Safari and Firefox. Is the URL perhaps too long?
1
0
11k
Apr ’21
Reply to Multiple language for MultipeerConnectivity
I changed the device language to Spanish (for an app localized for Spanish), and this is what I got: ibb.co/jLZx3VH Everything is localized correctly except for the Choose 1 to 7 invitees text.In your screenshot, all the text is English, which is different from what I got. What device language are you using? And what languages is your app localized for?Regardless, all the text should be translated by Apple, and it looks like some translations are missing. You should file a bug report for the translations to be added.
Dec ’18
Reply to WorldTrackingProvider stops working on device
I realized having headAnchor = worldTracking.queryDeviceAnchor(atTimestamp: CACurrentMediaTime()) right after the run ar session is problematic, I moved this line to system component in Immersive view, it works fine now. root.components.set(ClosureComponent(closure: { deltaTime in let headAnchor = tracking.worldTracking.queryDeviceAnchor(atTimestamp: CACurrentMediaTime()) let translation = ConvertTrackingTransform .GetHeadPosition(headAnchor) sphere.transform.translation = translation // print(Head position (translation)) }))` I also got scene reconstruction to work at the same time.
Topic: Spatial Computing SubTopic: General Tags:
Feb ’25
Reply to Make the new Translation API available beyond SwiftUI
Thank you for checking out the Translation API and letting us know what you think. While the Translation APIs do need to be triggered from SwiftUI, there's still a straightforward workaround to get this working from a mostly UIKit (or AppKit) app. You can add UIHostingController (or NSHostingController) to the place in your app you want any translation UI to present from. You can add the .translationPresentation or .translationTask modifier to a simple SwiftUI view, even though most of your app doesn't use SwiftUI.
Jun ’24
Force color scheme at the press of a button
This is once again about that Lunch Card app. There's a section in my app's settings that controls the appearance - color scheme, if you will - of the whole app. The three options are System Default Light Dark The picker is set up, and it works as normal, but what would I specify the action of these buttons to be to force a certain color scheme, whether that be dark, light, or auto. Here's the code for where the picker is: struct SettingsView: View { @State private var selectedAppearance = 1 var body: some View { // ... Picker(selection: $selectedAppearance, label: Text(Appearance)) { Button(action: { // Change app color scheme to be auto }) { Text(System Default) }.tag(1) Button(action: { // Change app color scheme to be light }) { Text(Light) }.tag(2) Button(action: { // Change app color scheme to be dark }) { Text(Dark) }.tag(3) } // ... }
9
0
7.0k
Jan ’21
Does iBooks support URL Scheme?
Hi All,Does iBooks (macOS version) support URL Scheme? I checked and found ibook:// could open iBooks. Is there any more actions support? e.g., ibooks://open?bookId=123&location=456 to open book with id of '123' and jump to location of '456'?I google a lot and didn't found any useful information. Any suggestion, welcomed, thanks in advanced for your help.BR,Jason
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
1.4k
May ’17
Reply to Translation API not working without the Apple Translate app installed
Reviewing the documentation and WWDC session I don't see anything about the Translation framework requiring the Translate app being installed. Unless I missed something, this could be bug. However, the settings area for the Translate app appears to be he place where you manage and download languages to available to the Translation framework. Are you making appropriate checks to make sure the languages you are trying to use are installed and available for translation? Please see the directions starting at ~ 12:00 in the following presentation for how to check if a language is available: Meet the Translation API If those checks fail, you can present directions for the user explaining how to fix the problem instead of crashing. If that does not help, our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reprodu
Jul ’25
Xcode creates schemes for some referenced Swift Packages
Xcode always creates targets /schemes for referenced Swift packages. In my app there are 14 Swift packages that are referenced. My app itself has two targets (app and an auto launcher) and Xcode creates targets for two schemes. I don't understand why those schemes are created (and why not for every package). Is there any way to disable this feature? Can someone explain why Xcode creates schemes for referenced Swift packages? I deleted the schemes several times, but Xcode simply recreates them.
3
0
2.5k
Sep ’22
Reply to Translation API & Download Language Sheet
Resolution Incase anyone stumbles on this, here's our solution to can't use if-statements in .translationTask(configuration) Originally I built a ViewModifier to switch between conditions (download only, or perform translation); but that didn't work for our use case. View Modifiers redraw the view causing TextEditors to lose their focus, which would not work for us. I landed on making a second TranslationSession.Configuration one for checking if language is downloaded, one for performing the translation. We check which to execute when the user taps the translate button: Two Configurations device owner is translating to @State var configurationForDownloadCheck: TranslationSession.Configuration? @State var configuration: TranslationSession.Configuration? Check which to run .onTapGesture { Task { // check if languages are downloaded and set control var let languagesFullyDownloaded = await translationLanguageIsDownloaded(from: nativeLanguageCode!, to: guestLanguageCode!) perfor
Topic: App & System Services SubTopic: General Tags:
May ’25
Reply to iOS 14 translate API
I’ll second that request. I would definitely be interested in access to the underlying on-device api that the new iOS 14 translate app uses. I’m currently using google translate via firebase, but would prefer to get rid of this dependency.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’20
URL scheme in Info.plist
I use the following entry in Info.plist to make the program handle the tidal url scheme, but it launches the program without the URL itself. The entry is: keyCFBundleURLTypes/key array dict keyCFBundleTypeRole/key stringViewer/string keyCFBundleURLName/key stringorg.strawberrymusicplayer.strawberry/string keyCFBundleURLSchemes/key array stringtidal/string /array /dict /array Full Info.plist here: https://github.com/strawberrymusicplayer/strawberry/blob/master/dist/macos/Info.plist.in The URL looks like this: tidal://login/auth With the url parameters that contains the authorization code, the total length is 692 characters. It works fine on Linux and Windows, but not on macOS. I've tested both with Safari and Firefox. Is the URL perhaps too long?
Replies
1
Boosts
0
Views
11k
Activity
Apr ’21
Reply to Multiple language for MultipeerConnectivity
I changed the device language to Spanish (for an app localized for Spanish), and this is what I got: ibb.co/jLZx3VH Everything is localized correctly except for the Choose 1 to 7 invitees text.In your screenshot, all the text is English, which is different from what I got. What device language are you using? And what languages is your app localized for?Regardless, all the text should be translated by Apple, and it looks like some translations are missing. You should file a bug report for the translations to be added.
Replies
Boosts
Views
Activity
Dec ’18
Reply to Cannot accept Developer Program License Agreement after adding phone number
did you use Google Translator?
Replies
Boosts
Views
Activity
Apr ’18
Reply to WorldTrackingProvider stops working on device
I realized having headAnchor = worldTracking.queryDeviceAnchor(atTimestamp: CACurrentMediaTime()) right after the run ar session is problematic, I moved this line to system component in Immersive view, it works fine now. root.components.set(ClosureComponent(closure: { deltaTime in let headAnchor = tracking.worldTracking.queryDeviceAnchor(atTimestamp: CACurrentMediaTime()) let translation = ConvertTrackingTransform .GetHeadPosition(headAnchor) sphere.transform.translation = translation // print(Head position (translation)) }))` I also got scene reconstruction to work at the same time.
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’25
Reply to Make the new Translation API available beyond SwiftUI
Thank you for checking out the Translation API and letting us know what you think. While the Translation APIs do need to be triggered from SwiftUI, there's still a straightforward workaround to get this working from a mostly UIKit (or AppKit) app. You can add UIHostingController (or NSHostingController) to the place in your app you want any translation UI to present from. You can add the .translationPresentation or .translationTask modifier to a simple SwiftUI view, even though most of your app doesn't use SwiftUI.
Replies
Boosts
Views
Activity
Jun ’24
Force color scheme at the press of a button
This is once again about that Lunch Card app. There's a section in my app's settings that controls the appearance - color scheme, if you will - of the whole app. The three options are System Default Light Dark The picker is set up, and it works as normal, but what would I specify the action of these buttons to be to force a certain color scheme, whether that be dark, light, or auto. Here's the code for where the picker is: struct SettingsView: View { @State private var selectedAppearance = 1 var body: some View { // ... Picker(selection: $selectedAppearance, label: Text(Appearance)) { Button(action: { // Change app color scheme to be auto }) { Text(System Default) }.tag(1) Button(action: { // Change app color scheme to be light }) { Text(Light) }.tag(2) Button(action: { // Change app color scheme to be dark }) { Text(Dark) }.tag(3) } // ... }
Replies
9
Boosts
0
Views
7.0k
Activity
Jan ’21
Does iBooks support URL Scheme?
Hi All,Does iBooks (macOS version) support URL Scheme? I checked and found ibook:// could open iBooks. Is there any more actions support? e.g., ibooks://open?bookId=123&location=456 to open book with id of '123' and jump to location of '456'?I google a lot and didn't found any useful information. Any suggestion, welcomed, thanks in advanced for your help.BR,Jason
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
0
Boosts
0
Views
1.4k
Activity
May ’17
Reply to Will Rosetta 2 bring back support for 32bit apps?
Rosetta 2 only translates 64bit Intel binaries to work on Apple Silicon. You can find out more about the translation and the limitations in this Rosetta 2 support article - https://developer.apple.com/documentation/apple_silicon/about_the_rosetta_translation_environment.
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’20
Reply to Translation API not working without the Apple Translate app installed
Reviewing the documentation and WWDC session I don't see anything about the Translation framework requiring the Translate app being installed. Unless I missed something, this could be bug. However, the settings area for the Translate app appears to be he place where you manage and download languages to available to the Translation framework. Are you making appropriate checks to make sure the languages you are trying to use are installed and available for translation? Please see the directions starting at ~ 12:00 in the following presentation for how to check if a language is available: Meet the Translation API If those checks fail, you can present directions for the user explaining how to fix the problem instead of crashing. If that does not help, our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reprodu
Replies
Boosts
Views
Activity
Jul ’25
Xcode creates schemes for some referenced Swift Packages
Xcode always creates targets /schemes for referenced Swift packages. In my app there are 14 Swift packages that are referenced. My app itself has two targets (app and an auto launcher) and Xcode creates targets for two schemes. I don't understand why those schemes are created (and why not for every package). Is there any way to disable this feature? Can someone explain why Xcode creates schemes for referenced Swift packages? I deleted the schemes several times, but Xcode simply recreates them.
Replies
3
Boosts
0
Views
2.5k
Activity
Sep ’22
Reply to Translation API & Download Language Sheet
Resolution Incase anyone stumbles on this, here's our solution to can't use if-statements in .translationTask(configuration) Originally I built a ViewModifier to switch between conditions (download only, or perform translation); but that didn't work for our use case. View Modifiers redraw the view causing TextEditors to lose their focus, which would not work for us. I landed on making a second TranslationSession.Configuration one for checking if language is downloaded, one for performing the translation. We check which to execute when the user taps the translate button: Two Configurations device owner is translating to @State var configurationForDownloadCheck: TranslationSession.Configuration? @State var configuration: TranslationSession.Configuration? Check which to run .onTapGesture { Task { // check if languages are downloaded and set control var let languagesFullyDownloaded = await translationLanguageIsDownloaded(from: nativeLanguageCode!, to: guestLanguageCode!) perfor
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’25
URL Scheme For Apple Developer App
In our App we have a need to open Apple Developer App from our iOS App to guide user to Developer App. But looks like there is no confirmed URL Scheme provided. Can you help on this.
Replies
2
Boosts
0
Views
182
Activity
Oct ’25
Reply to iOS 14 translate API
I’ll second that request. I would definitely be interested in access to the underlying on-device api that the new iOS 14 translate app uses. I’m currently using google translate via firebase, but would prefer to get rid of this dependency.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’20
Reply to Make the new Translation API available beyond SwiftUI
Is there a clear timeline for Apple to introduce a standalone Translation API? Many use cases require translation to be handled outside the UI layer. Why hasn’t Apple provided a lower-level API to enable broader integration and flexibility?
Replies
Boosts
Views
Activity
Feb ’25
Reply to NEIPv6Route fallback as NEIPv4Route
What translation mechanism are available in iOS?
Replies
Boosts
Views
Activity
Apr ’19