Post

Replies

Boosts

Views

Activity

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?
0
0
209
Oct ’24
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
550
Jun ’23
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
3.7k
Jun ’23
Xcode 12.0 Beta Missing autocompletion for classes which adopts a protocol
Usually I write a subclass of NSObject which implements UITableViewControllerDataSource and start to write number which leads to an autocomplete with suggestions from mentioned protocol but in Xcode12 the autocomplete returns empty list. STR: move a cursor to body of class CountriesTableDataSource start to write "numb" which should lead to an autocomplete list of methods from UITableViewDataSource class CountriesTableDataSource: NSObject, UITableViewDataSource {     let data = Locale.isoRegionCodes.map {		 Locale.current.localizedString(forRegionCode: $0) } }
1
0
595
Jun ’20