Post

Replies

Boosts

Views

Activity

Reply to Swift Charts are being rendered very higgledy piggledy
If you want to see what happens on your system then the source is available at [https://github.com/csantavy/BarChartErrors]\ If you get the same or other errors then please raise a Feedback referencing FB23015978 Also, I have seen the following two sets of errors in the debug area. Attribute Graph Based Charts Error: The scale domain configuration type number doesn't match encoded value type for channel x Charts: Custom UnitPoint values are not supported in AxisValueLabel's anchor property. Please use leading, topLeading, center, etc. Charts: Falling back to a fixed dimension size for a mark. Consider adding unit to the data or specifying an exact dimension size. Attribute Graph Based Charts Error: The scale domain configuration type number doesn't match encoded value type for channel x IOSurfaceClientSetSurfaceNotify failed e00002c7 fopen failed for data file: errno = 2 (No such file or directory) fopen failed for data file: errno = 2 (No such file or directory) non-launching port is incompatible with service identifier "com.apple.PointerUI.pointeruid.default-service" objc[13256]: Class _UIKeyboardIntelligenceElement is implemented in both /private/var/run/com.apple.security.cryptexd/mnt/com.apple.iPhoneOS.SimulatorRuntime-v24.1.5355.16.5q1iGi/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 27.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x1f086c3c8) and /private/var/run/com.apple.security.cryptexd/mnt/com.apple.iPhoneOS.SimulatorRuntime-v24.1.5355.16.5q1iGi/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 27.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AutoFillUI.framework/AutoFillUI (0x10ed48550). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. and Attribute Graph Based Charts Error: The scale domain configuration type number doesn't match encoded value type for channel x Charts: Custom UnitPoint values are not supported in AxisValueLabel's anchor property. Please use leading, topLeading, center, etc. Charts: Falling back to a fixed dimension size for a mark. Consider adding unit to the data or specifying an exact dimension size. IOSurfaceClientSetSurfaceNotify failed e00002c7 non-launching port is incompatible with service identifier "com.apple.PointerUI.pointeruid.default-service"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to Xcode and Open With External Editor
I am perhaps a little to late to the party with a solution for this, however ... In Finder, find a file of the same type that you want to change the default file for. Right -click and Get Info Below the comments section is the 'Open with' section which will allow you to set the default application to open this one file or all files of this type across the whole of MacOS and not just Xcode. Again, sorry for the delay folks Also, see https://stackoverflow.com/questions/75463720/xcode-open-with-external-editor for further info.
Feb ’26
Reply to Xcode has two kinds of source tabs. What are they?
On my editors, the titles of the files are in the same font. However, the selected editor window which has the cursor in has the file title highlighted. When you click on a file in the navigator, then this is the editor window which will now have the selected file in. Also, the file location breadcrumbs have the Xcode logo just to the left highlighted. Sorry but I can't load a screenshot at the moment but hope this helps.
Jun ’23
Reply to Regex Sample Code - Errors with code at [3:49}
I concur that .split(by: RegexComponent) is the way to go as it accepts RegexComponent rather than .split(separator: Character) which just accepts a single character. Here is an example of a case statement using Regexs. //  does a string start with a word of one or more letters? var possibleWords   = ["word", " text", "1stop", "-spaced", "987-", "987again"] for word in possibleWords {     switch true {     case word.starts(with: /\d{3}-/) :         print("'\(word)' starts with  3-digits and a hyphen.")     case word.starts(with: /\d+/) :         print("'\(word)' starts with digit(s).")     case word.starts(with: /\w+/) :         print("'\(word)' starts with a word.")     case word.starts(with: /\s+/) :         print("'\(word)' starts with a whitespace.")     default:         print("'\(word)' had no Matches")     } } The output from this is 'word' starts with a word. ' text' starts with a whitespace. '1stop' starts with digit(s). '-spaced' had no Matches '987-' starts with  3-digits and a hyphen. '987again' starts with digit(s). Hope this helps Chris
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’22
Reply to Swift Charts are being rendered very higgledy piggledy
If you want to see what happens on your system then the source is available at [https://github.com/csantavy/BarChartErrors]\ If you get the same or other errors then please raise a Feedback referencing FB23015978 Also, I have seen the following two sets of errors in the debug area. Attribute Graph Based Charts Error: The scale domain configuration type number doesn't match encoded value type for channel x Charts: Custom UnitPoint values are not supported in AxisValueLabel's anchor property. Please use leading, topLeading, center, etc. Charts: Falling back to a fixed dimension size for a mark. Consider adding unit to the data or specifying an exact dimension size. Attribute Graph Based Charts Error: The scale domain configuration type number doesn't match encoded value type for channel x IOSurfaceClientSetSurfaceNotify failed e00002c7 fopen failed for data file: errno = 2 (No such file or directory) fopen failed for data file: errno = 2 (No such file or directory) non-launching port is incompatible with service identifier "com.apple.PointerUI.pointeruid.default-service" objc[13256]: Class _UIKeyboardIntelligenceElement is implemented in both /private/var/run/com.apple.security.cryptexd/mnt/com.apple.iPhoneOS.SimulatorRuntime-v24.1.5355.16.5q1iGi/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 27.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore (0x1f086c3c8) and /private/var/run/com.apple.security.cryptexd/mnt/com.apple.iPhoneOS.SimulatorRuntime-v24.1.5355.16.5q1iGi/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 27.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AutoFillUI.framework/AutoFillUI (0x10ed48550). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed. and Attribute Graph Based Charts Error: The scale domain configuration type number doesn't match encoded value type for channel x Charts: Custom UnitPoint values are not supported in AxisValueLabel's anchor property. Please use leading, topLeading, center, etc. Charts: Falling back to a fixed dimension size for a mark. Consider adding unit to the data or specifying an exact dimension size. IOSurfaceClientSetSurfaceNotify failed e00002c7 non-launching port is incompatible with service identifier "com.apple.PointerUI.pointeruid.default-service"
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
2w
Reply to Xcode and Open With External Editor
I am perhaps a little to late to the party with a solution for this, however ... In Finder, find a file of the same type that you want to change the default file for. Right -click and Get Info Below the comments section is the 'Open with' section which will allow you to set the default application to open this one file or all files of this type across the whole of MacOS and not just Xcode. Again, sorry for the delay folks Also, see https://stackoverflow.com/questions/75463720/xcode-open-with-external-editor for further info.
Replies
Boosts
Views
Activity
Feb ’26
Reply to Create a new GitHub Remote Repository - Unknown Error
Albert, You are a star, thank you. I had created another project six years ago and happened to use the same name, doh! I renamed the old one on GitHub and now all is good. I will amend the feedback that I had already created so as to detail the failure mode/unhandled condition. Hope you have a good day. Chris
Replies
Boosts
Views
Activity
Jan ’26
Reply to Table container, when scrolling content, the content will appear underneath and to the top of the column headings.
Thank you for your response. I have submitted feedback FB20670375 The project is available at https://github.com/csantavy/TableContainer.git
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Oct ’25
Reply to Xcode has two kinds of source tabs. What are they?
On my editors, the titles of the files are in the same font. However, the selected editor window which has the cursor in has the file title highlighted. When you click on a file in the navigator, then this is the editor window which will now have the selected file in. Also, the file location breadcrumbs have the Xcode logo just to the left highlighted. Sorry but I can't load a screenshot at the moment but hope this helps.
Replies
Boosts
Views
Activity
Jun ’23
Reply to func jsonRepresentation(options: JSONWritingOptions = .init()) throws -> Data returns an UnsafeRawPointer
Thank you for your reponse. What I don't understand is why I cannot therefore write let myJSON = myDataFrame.jsonRepresentaion()
Topic: Machine Learning & AI SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Regex code from WWDC sample code not working
Try Lookahead(fieldSeparator, negative: true)
Replies
Boosts
Views
Activity
Jun ’22
Reply to Regex Sample Code - Errors with code at [3:49}
I concur that .split(by: RegexComponent) is the way to go as it accepts RegexComponent rather than .split(separator: Character) which just accepts a single character. Here is an example of a case statement using Regexs. //  does a string start with a word of one or more letters? var possibleWords   = ["word", " text", "1stop", "-spaced", "987-", "987again"] for word in possibleWords {     switch true {     case word.starts(with: /\d{3}-/) :         print("'\(word)' starts with  3-digits and a hyphen.")     case word.starts(with: /\d+/) :         print("'\(word)' starts with digit(s).")     case word.starts(with: /\w+/) :         print("'\(word)' starts with a word.")     case word.starts(with: /\s+/) :         print("'\(word)' starts with a whitespace.")     default:         print("'\(word)' had no Matches")     } } The output from this is 'word' starts with a word. ' text' starts with a whitespace. '1stop' starts with digit(s). '-spaced' had no Matches '987-' starts with  3-digits and a hyphen. '987again' starts with digit(s). Hope this helps Chris
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22