Search results for

“xcode github”

96,040 results found

Post

Replies

Boosts

Views

Activity

Reply to Converting meters to millimeters
I was told the code below was the correct code to use to convert a 3d scan in meters to millimeters. I must not have it in the correct place in the code in my first post. vertex[j].x = vertex[j].x * 1000.0; vertex[j].y = vertex[j].y * 1000.0; vertex[j].z = vertex[j].z * 1000.0;
Topic: Programming Languages SubTopic: General Tags:
Nov ’16
Reply to noob error on my code, how to fix it?
I checked in code, and it compîles and works ! (Swift 2.2) (withIdentifier: userVC) let x = (withIdentifier: userVC) Swift.print(x)on console userVCEdited : it's interpreted as a tuple with a single item.I tried : let x = (withIdentifier: userVC, withSecond: Second) Swift.print(x)and get :(userVC, Second)I guess it should not work anymore in Swift4
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’17
Reply to Sign In With Apple not working with Xcode 12 beta on simulator ?
Using xcode 13. I downloaded ios Simulator 13.4 and there it works for me. Simulator ios version 14.5, and 15 it does not, no error messages, only spining wheel. Hardware works fine. The issue with this workaround, is that I have code that can only be run on 14+, so even if testing goes through for apple signin on 13.x, part of the code will not work on that ios version. Have now gone through rejected phase 3 times, although explained every time.
Oct ’21
Reply to Xcode Source Editor Extension - single character selection range
Hey! Your code logic isn't right.start.column is the offset of te cursor from the BEGGINING of the line, so column zero would be exactly the begining of the line, even if there are any spaces or tabs.Column zero would be right before the first letter of this sentence.So if you want to know if theres no selection you should instead check:start.column == end.column // No selectionOr if you want to check for only one character or n number of characters selected you should do this:start.column == (end.column - 1) // only one character selected start.column == (end.column - x) // only X number of characters selectedBTW, I finished my xcode extension two days ago and I'm still not able to use it in Xcode 8 final because of a **** bug. 😠 but that's another problem.Hope this helps 😉
Sep ’16
Reply to On the short-circuit of AND operator
a. What is the error?b. The second condition is not evaluated, but it's still compiled.c. It may depend on what your real code is. If you really wrote the sub-expression 1/0, it seems reasonable for the compiler to tell you that's wrong. If you wrote: let x = … let y = ... if x > 0 && y / x == 0 { … }then there shouldn't be an error message. If you wrote: let x = 0 let y = ... if x > 0 && y / x == 0 { … }then the compiler should tell you that the condition is always false.Etc.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’16
Reply to Converting meters to millimeters
I was told the code below was the correct code to use to convert a 3d scan in meters to millimeters. I must not have it in the correct place in the code in my first post. vertex[j].x = vertex[j].x * 1000.0; vertex[j].y = vertex[j].y * 1000.0; vertex[j].z = vertex[j].z * 1000.0;
Topic: Programming Languages SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’16
Reply to How to preview a custom View that takes bindings as inputs in its initializer?
For what it's worth, this is one of the tools in my toolset on Github.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’19
Reply to noob error on my code, how to fix it?
I checked in code, and it compîles and works ! (Swift 2.2) (withIdentifier: userVC) let x = (withIdentifier: userVC) Swift.print(x)on console userVCEdited : it's interpreted as a tuple with a single item.I tried : let x = (withIdentifier: userVC, withSecond: Second) Swift.print(x)and get :(userVC, Second)I guess it should not work anymore in Swift4
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’17
Reply to Sign In With Apple not working with Xcode 12 beta on simulator ?
Using xcode 13. I downloaded ios Simulator 13.4 and there it works for me. Simulator ios version 14.5, and 15 it does not, no error messages, only spining wheel. Hardware works fine. The issue with this workaround, is that I have code that can only be run on 14+, so even if testing goes through for apple signin on 13.x, part of the code will not work on that ios version. Have now gone through rejected phase 3 times, although explained every time.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Can we share planes/anchorpoints with others?
I will put this on github in the coming weeks and respond back here.
Topic: Spatial Computing SubTopic: ARKit Tags:
Replies
Boosts
Views
Activity
Jun ’17
Reply to Xcode does not create git directory?
It is solved by adding the username and email of GitHub on the preferences.
Replies
Boosts
Views
Activity
Dec ’18
Reply to How do I run a Xcode Applicaton as root
I plan to export the product to GitHub, giving it to people there.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Are there assets available for the code from Introduction to SwiftUI section?
Thanks very much jaypri for creating the GitHub project.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’20
Reply to UIActivityViewController options are not clickable and scrollable when i add thirdparty framework
github address: https://github.com/youshinki/ShareExample
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to VisionOS custom hover effect and click sound
Here is a VisonOS project demonstrating the problem: GitHub Project
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Can't deploy to iPhone (not available, please reconnect the device)
Was running into the same issue with XCode 11.7 & iOS 14.0, restarting phone/mac did not help. I added Device Support files for iOS 14 under XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport Device support files for different iOS versions are available on github under filsv/iPhoneOSDeviceSupport Hope this is useful.
Replies
Boosts
Views
Activity
Oct ’20
Reply to Access Watch Heart Rate Sensor? Where are the docs?
search github watchOS-2-heartrate
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Unresolved Spilt View problem?
I am just learning GitHub. How do I push a link?
Replies
Boosts
Views
Activity
Mar ’18
Reply to Xcode Source Editor Extension - single character selection range
Hey! Your code logic isn't right.start.column is the offset of te cursor from the BEGGINING of the line, so column zero would be exactly the begining of the line, even if there are any spaces or tabs.Column zero would be right before the first letter of this sentence.So if you want to know if theres no selection you should instead check:start.column == end.column // No selectionOr if you want to check for only one character or n number of characters selected you should do this:start.column == (end.column - 1) // only one character selected start.column == (end.column - x) // only X number of characters selectedBTW, I finished my xcode extension two days ago and I'm still not able to use it in Xcode 8 final because of a **** bug. 😠 but that's another problem.Hope this helps 😉
Replies
Boosts
Views
Activity
Sep ’16
Reply to On the short-circuit of AND operator
a. What is the error?b. The second condition is not evaluated, but it's still compiled.c. It may depend on what your real code is. If you really wrote the sub-expression 1/0, it seems reasonable for the compiler to tell you that's wrong. If you wrote: let x = … let y = ... if x > 0 && y / x == 0 { … }then there shouldn't be an error message. If you wrote: let x = 0 let y = ... if x > 0 && y / x == 0 { … }then the compiler should tell you that the condition is always false.Etc.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’16