Search results for

“translate scheme”

6,670 results found

Post

Replies

Boosts

Views

Activity

CPU-based transform or GPU-based Affine 3D Transform or Linear 2D Transform + 2D Translation through `fma`, what is more efficient?
I'm working on 2D drawing application. I receive CGPoints from UITouches and transform it to Metal coordinate space. In most cases I have to create several vertices from one CGPoint, apply transformation to them and convert to Metal coordinate space. I use simd and vector-matrix multiplication. So I have 4 options to do it. Create affine 3D matrix with linear transform (scale/rotation in my case) + translation (matrix_float3x3) and perform vector-matrix multiplication on CPU side using simd. Create affine transform and perform multiplication on GPU side in vertex function. Create uniform with separate matrix_float2x2 linear transformation and simd_float2 translation and perform fma operation with 2D vector, linear 2D matrix and translation 2D vector on CPU side using Accelerate. The same as third option but perform fma on GPU side in vertex function. What is more efficient? And what are best practices in GPU programming? As I understand correctly fma and vector-matrix multiplication
1
0
1.1k
May ’21
Xcode 16.x project doesn’t build with (SiriKit / Widget) intent definition file + translations
If you add a (SiriKit / Widget) intent definition file to an Xcode project and then translate it into another language, the build of the iOS app only works until you close the project. As soon as you open the project again, you get the error message with the next build: Unexpected duplicate tasks A workaround for this bug is, that you convert the folder (where the intent file is located) in Xcode to a group. After that every thing works without problems. Steps to reproduce: Create a new iOS project Add a localization to the project (German for example) Add a SiriKit Intent Definition File Localize the SiriKit Intent Definition File Build the project (should work without errors) Close the project Open the project again Build the project again Expected result: The project builds without problems Current result: The project doesn’t build and returns the error: Unexpected duplicate tasks Is this a known problem? Is there a way to solve this without switching to Xcode groups (instead of folders)
4
0
889
Dec ’24
translate between NSView and MTL drawable coordinates
Metal newbie here:I have a punch of 2D points in the coordinate space of the NSView that hosts a metal layer. How can i convert these points into the coordinate space of the metal layer's drawable?The reason i want to do this is to transform the points in a vertex shader into the coordinate space of the drawable.MTLViewport may have something to do with this, but i can't quite figure out how to get to that in the verstex shader.Thank you.
2
0
1.5k
May ’16
Shortcuts app not translating deferredLocalizations
With iOS 12 having just come out I've noticed that strings localised with NSString.deferredLocalizedIntentsString are localised in the iOS settings, but not in the Shortcuts app.Has anyone else noticed that? Not really sure if I'm using it incorrectly, or whether this is just a bug in the Shortcuts app.The actual code looks like this, again looks fine in iOS settings, but not in the Shortcuts app.let powerLabel = NSString.deferredLocalizedIntentsString(with: power ? L_ON : L_OFF) as String intent.power = INObject(identifier: powerIdentifier, display: powerLabel)
2
0
1.5k
Sep ’18
Polish Months appear to be translated incorrectly
When using the date format MMMM our Polish users are seeing incorrect month names. I'm not a native speaker, but was informed iOS is using the wrong possessive tense. The month names should be as below (Jan-Dec): Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień Październik Listopad Grudzień Can anyone confirm and correct if necessary?
5
0
1.4k
Mar ’22
One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility.
I am getting an error: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N10__cxxabiv116__shim_type_infoE, id, *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The fetch request's entity 0x28360c160 'CustomModel' appears to be from a different NSManagedObjectModel than this context's' Here is my subclass: import Foundation import CoreData public class CustomModel: NSManagedObject, Identifiable { @NSManaged public var name: String? @NSManaged public var select: Int } extension CustomModel { static func allCustomModelFetchRequest() -> NSFetchRequest { let request: NSFetchRequest = CustomModel.fetchRequest() as! NSFetchRequest request.sortDescriptors = [NSSortDescriptor(key: CustomModel, ascending: true)] return request } static func queryCustom(name:String) -> NSFetchRequest { let request: NSFetchRequest = CustomModel.fetchRequest() as! NSFetchRequest request.p
0
0
1.7k
Apr ’22
In need of an App that translates or gives clarity on the speech
I got a feeling that we should have an App that helps mentally disabled or physically disabled people to communicate with others. As their speech wont be that clear, so if there is a MIRACLE app that helps them to communicate with other people without any troubles.so my question to all app developers is , is that possible? if yes, i think we should be implementing it so that all over the world can be used.
0
0
72
Feb ’16
ARKit translation of point of view to camera coordinate
I'm working on updating an existing solar system with augmented reality. h ttps://github.com/johndpope/solarSystem-1As with most universe demos the system uses a heliocentric model, the sun is at (x:0,y:0,z:0) - this loads up into the ar scene perfectly. however I want to have the solar system appear to rotate around the earth node with the user's ********* sphere appearing at the center. I can achieve this by adding a camera to earth node with a SCNLookAtConstraint - but then I lose the interaction with ARkit / movement of phone.import Foundation import UIKit import ARKit import SceneKit class GameViewController: UIViewController, ARSCNViewDelegate { var scnView:ARSCNView! let scene = SCNScene() let earthRotationNode = SCNNode() let earthNode = SCNNode() // Camera var camera = SCNCamera() let cameraNode = SCNNode() override func viewDidLoad() { super.viewDidLoad() let lightNode = SCNNode() lightNode.light = SCNLight() lightNode.light!.type = .omni lightNode.position = SCNVector3(x: 0, y: 0, z: 0) scene.rootN
0
0
2.5k
Nov ’17
Translate ARKit face anchor to camera coordinates
My Swift ARKit app needs the position and orientation of the face relative to the front-facing camera. If I set ARConfiguration.worldAlignment = .camera all I need to do is call for the faceAnchor.transform, which works perfectly; but my app needs to run in the default worldAlignment = .gravity so it can work properly with virtual content. In this mode I can get faceAnchor.transform and camera.transform, which are both supplied in world coordinates. How can I use those transforms or other data/methods to get the face anchor in camera coordinates? (Specifically, I need a transform that comes out the same as the direct result from worldAlignment = .camera.) I've tried multiplying those together as well as multiplying one by the other's inverse, in all four order combinations, but none of these results works. I think I am missing something basic. Help?!?!
3
0
2.6k
Apr ’20
I want to translate the ARCamera forward on pinchIn.
Is that possible? its not letting me set the Z value of the transform matrix's 3rd column directly on pinch gestures. Is it possible to move the camera programatically.
Replies
0
Boosts
0
Views
386
Activity
Nov ’17
CPU-based transform or GPU-based Affine 3D Transform or Linear 2D Transform + 2D Translation through `fma`, what is more efficient?
I'm working on 2D drawing application. I receive CGPoints from UITouches and transform it to Metal coordinate space. In most cases I have to create several vertices from one CGPoint, apply transformation to them and convert to Metal coordinate space. I use simd and vector-matrix multiplication. So I have 4 options to do it. Create affine 3D matrix with linear transform (scale/rotation in my case) + translation (matrix_float3x3) and perform vector-matrix multiplication on CPU side using simd. Create affine transform and perform multiplication on GPU side in vertex function. Create uniform with separate matrix_float2x2 linear transformation and simd_float2 translation and perform fma operation with 2D vector, linear 2D matrix and translation 2D vector on CPU side using Accelerate. The same as third option but perform fma on GPU side in vertex function. What is more efficient? And what are best practices in GPU programming? As I understand correctly fma and vector-matrix multiplication
Replies
1
Boosts
0
Views
1.1k
Activity
May ’21
Xcode 16.x project doesn’t build with (SiriKit / Widget) intent definition file + translations
If you add a (SiriKit / Widget) intent definition file to an Xcode project and then translate it into another language, the build of the iOS app only works until you close the project. As soon as you open the project again, you get the error message with the next build: Unexpected duplicate tasks A workaround for this bug is, that you convert the folder (where the intent file is located) in Xcode to a group. After that every thing works without problems. Steps to reproduce: Create a new iOS project Add a localization to the project (German for example) Add a SiriKit Intent Definition File Localize the SiriKit Intent Definition File Build the project (should work without errors) Close the project Open the project again Build the project again Expected result: The project builds without problems Current result: The project doesn’t build and returns the error: Unexpected duplicate tasks Is this a known problem? Is there a way to solve this without switching to Xcode groups (instead of folders)
Replies
4
Boosts
0
Views
889
Activity
Dec ’24
translate between NSView and MTL drawable coordinates
Metal newbie here:I have a punch of 2D points in the coordinate space of the NSView that hosts a metal layer. How can i convert these points into the coordinate space of the metal layer's drawable?The reason i want to do this is to transform the points in a vertex shader into the coordinate space of the drawable.MTLViewport may have something to do with this, but i can't quite figure out how to get to that in the verstex shader.Thank you.
Replies
2
Boosts
0
Views
1.5k
Activity
May ’16
Shortcuts app not translating deferredLocalizations
With iOS 12 having just come out I've noticed that strings localised with NSString.deferredLocalizedIntentsString are localised in the iOS settings, but not in the Shortcuts app.Has anyone else noticed that? Not really sure if I'm using it incorrectly, or whether this is just a bug in the Shortcuts app.The actual code looks like this, again looks fine in iOS settings, but not in the Shortcuts app.let powerLabel = NSString.deferredLocalizedIntentsString(with: power ? L_ON : L_OFF) as String intent.power = INObject(identifier: powerIdentifier, display: powerLabel)
Replies
2
Boosts
0
Views
1.5k
Activity
Sep ’18
Polish Months appear to be translated incorrectly
When using the date format MMMM our Polish users are seeing incorrect month names. I'm not a native speaker, but was informed iOS is using the wrong possessive tense. The month names should be as below (Jan-Dec): Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień Październik Listopad Grudzień Can anyone confirm and correct if necessary?
Replies
5
Boosts
0
Views
1.4k
Activity
Mar ’22
Translator, cpu scheduling and memory management technique
Hi, I am currently a university student and i am doing a research on macOS. These are my questions: Is Z shell the command line interpreter? What is macOS cpu scheduling method? What is macOS memory management technique? Thank you in advance and will appreciate any information.
Replies
0
Boosts
0
Views
343
Activity
Jun ’21
How to Use JSON files to language translation in Swift?
Hi everyone. I want to download some JSON files to localize my app. What format should this JSON file be in and how can I use these files after downloading them?
Replies
0
Boosts
0
Views
773
Activity
Sep ’21
App scheme missing in the Active scheme area
Hi Team, I have created single app project with Family controls capabilities and added respected framework. Once it's done I am not able to see App scheme in Active scheme area. When I try to run the project, Choose app to run pop-up getting shown. Any help on this please?
Replies
0
Boosts
0
Views
1k
Activity
Jul ’22
One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility.
I am getting an error: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N10__cxxabiv116__shim_type_infoE, id, *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The fetch request's entity 0x28360c160 'CustomModel' appears to be from a different NSManagedObjectModel than this context's' Here is my subclass: import Foundation import CoreData public class CustomModel: NSManagedObject, Identifiable { @NSManaged public var name: String? @NSManaged public var select: Int } extension CustomModel { static func allCustomModelFetchRequest() -> NSFetchRequest { let request: NSFetchRequest = CustomModel.fetchRequest() as! NSFetchRequest request.sortDescriptors = [NSSortDescriptor(key: CustomModel, ascending: true)] return request } static func queryCustom(name:String) -> NSFetchRequest { let request: NSFetchRequest = CustomModel.fetchRequest() as! NSFetchRequest request.p
Replies
0
Boosts
0
Views
1.7k
Activity
Apr ’22
In need of an App that translates or gives clarity on the speech
I got a feeling that we should have an App that helps mentally disabled or physically disabled people to communicate with others. As their speech wont be that clear, so if there is a MIRACLE app that helps them to communicate with other people without any troubles.so my question to all app developers is , is that possible? if yes, i think we should be implementing it so that all over the world can be used.
Replies
0
Boosts
0
Views
72
Activity
Feb ’16
ARKit translation of point of view to camera coordinate
I'm working on updating an existing solar system with augmented reality. h ttps://github.com/johndpope/solarSystem-1As with most universe demos the system uses a heliocentric model, the sun is at (x:0,y:0,z:0) - this loads up into the ar scene perfectly. however I want to have the solar system appear to rotate around the earth node with the user's ********* sphere appearing at the center. I can achieve this by adding a camera to earth node with a SCNLookAtConstraint - but then I lose the interaction with ARkit / movement of phone.import Foundation import UIKit import ARKit import SceneKit class GameViewController: UIViewController, ARSCNViewDelegate { var scnView:ARSCNView! let scene = SCNScene() let earthRotationNode = SCNNode() let earthNode = SCNNode() // Camera var camera = SCNCamera() let cameraNode = SCNNode() override func viewDidLoad() { super.viewDidLoad() let lightNode = SCNNode() lightNode.light = SCNLight() lightNode.light!.type = .omni lightNode.position = SCNVector3(x: 0, y: 0, z: 0) scene.rootN
Replies
0
Boosts
0
Views
2.5k
Activity
Nov ’17
Translate ARKit face anchor to camera coordinates
My Swift ARKit app needs the position and orientation of the face relative to the front-facing camera. If I set ARConfiguration.worldAlignment = .camera all I need to do is call for the faceAnchor.transform, which works perfectly; but my app needs to run in the default worldAlignment = .gravity so it can work properly with virtual content. In this mode I can get faceAnchor.transform and camera.transform, which are both supplied in world coordinates. How can I use those transforms or other data/methods to get the face anchor in camera coordinates? (Specifically, I need a transform that comes out the same as the direct result from worldAlignment = .camera.) I've tried multiplying those together as well as multiplying one by the other's inverse, in all four order combinations, but none of these results works. I think I am missing something basic. Help?!?!
Replies
3
Boosts
0
Views
2.6k
Activity
Apr ’20
Localization - translations - CZ-ENG, ENG-CZ
I would like to ask if it is possible to work with Apple on localization in a combination of CZ-ENG and ENG-CZ languages. I have been working for many years for various e-commerce companies. Thank you for your tips, David misadavid(at sign)seznam.cz Czech Republic
Replies
1
Boosts
0
Views
738
Activity
Apr ’22
Audio translation problem in iPhone shortcut command
Did anyone know about the issue with using the built-in script in the shortcut command for transcribing audio on the iPhone and finding that the time for transcribing audio is very short? Can you please let me know.
Replies
0
Boosts
0
Views
409
Activity
Mar ’24