Post

Replies

Boosts

Views

Activity

Are Text Encoding and Line Endings broken ?
I would like to understand what the “Text Encoding” and “Line Endings” settings in the Identity Inspector of a file actually represent. Both settings are configurable in Xcode’s preferences. It seems that both of them are broken. I have a file that uses CRLF line endings and is encoded in a Japanese code page, but Xcode displays “No Explicit Encoding” and “No Explicit Line Endings”. I tried saving the file after changing these settings in Xcode, but nothing changes for the file in question. I thought maybe these settings only apply to source files in C++, C, or Objective-C projects—or even assembler—but there’s no impact on other languages either. Are “Text Encoding” and “Line Endings” simply broken? If not, when and how are they actually used?
0
0
34
Nov ’25
Clarification on New Transition Behavior of UIDocumentInteractionController in iOS 18: Feature or Bug?
Starting with iOS 18, there is a change in how the transition from an underlying view to a UIDocumentInteractionController’s preview view is animated. The transition now scales down the size of the content within the controller’s view, using the center point of the root view as the base of the transformation. This results in a smaller, compressed view centered within the root view, revealing the root view’s background, which is typically white. Even if this background color is adjusted to match elements like the navigation bar, the transformed view has non-rounded corners. I have not tested this behavior when presenting a UIDocumentInteractionController from a SwiftUI view. My question to the UIKit framework developers: Is this new behavior of UIDocumentInteractionController an intentional feature, a feature with bugs, or just a bug?
Topic: UI Frameworks SubTopic: UIKit
0
0
393
Oct ’24
Swift Macro: Missing package product 'MyMacroApple'
In Xcode 15.0.0 I have created a package using a template Swift Macro. I have named it 'MyMacroApple'. The template comes with #stringify macro so I have created an new app and named it 'MyMacroApp' then copy pasted the code from 'MyMacroApple' main.swift file import MyMacroApple let a = 17 let b = 25 let (result, code) = #stringify(a + b) then I have added Local package dependency to the app project and selected package product 'MyMacroApple' of Library kind to my 'pocMyApp' target. When I run the project I get the error: "No such module 'MyMacroApple'"
6
0
4.3k
Dec ’23
Can I set auto layout, position and size of contentUnavailableConfiguration
I have integrated contentUnavailableConfiguration within my view controller, which has a navigation bar, a segmented bar below the navigation bar, and a table view. The contentUnavailableConfiguration sets the new view to cover everything except the navigation bar and tab bar. I have tried to use ViewDebugger to understand the auto layout used by the contentUnavailableConfiguration, but its view is not displayed in the debugger's view hierarchy navigator. I would like to only cover the table view and keep the segmented bar, which is below the navigation bar and above the table view, visible to the user. Is it possible to do this with contentUnavailableConfiguration?
0
0
678
Jun ’23