Starting from iOS18 UIHostingController behaves weirdly that it resets the state of the view when you scroll up and down of the UITableView, even though associated UITableViewCell is unique and does reuse
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.row == 1 {
let cell = tableView.dequeueReusableCell(withIdentifier: "SwiftUICell", for: indexPath)
let swiftUIView = SwiftUIView() // A SwiftUI View
cell.contentConfiguration = UIHostingConfiguration { // <- Here is the bug
swiftUIView
}
return cell
} else {
let cell = tableView.dequeueReusableCell(withIdentifier: "NormalCell", for: indexPath)
cell.textLabel?.text = items[indexPath.row]
return cell
}
}
Also in iOS18 release notes thee mentioned some fix related to this but looks like issue is not fixed
Please see the attached video
Post
Replies
Boosts
Views
Activity
When you try to present medium height popover from the bottom of iPhone view then popover is clipped in iOS18 but works in old devices
Sample code
Button("Show Popover") {
showPopover.toggle()
}
.popover(
isPresented: $showPopover,
arrowDirection: arrowDirection
) {
conent
}
Result
When I try to change the arrow direction for SwiftUI popover it's not working at all, but in UIKit it seems to be ok
Please check the sample code
Button {
showPopover.toggle()
} label: {
Text("Show Popover")
.padding(60)
.border(Color.yellow)
}
.popover(
isPresented: $showPopover,
arrowEdge: .bottom // issue here
) {
Text("Popover conent")
}
When you run the app in Xcode16 beta1 + iOS18 beta1 on device app crashing with following error, but simulator is ok
Error:
dyld[1463]: Library not loaded: @rpath/lib/libswiftCoreGraphics.dylib
Referenced from: /private/var/containers/Bundle/Application/7F968F8F-A134-45DD-95F7-9BF2C1EBBC14/.app/Frameworks/BrazeUI_30A23D419F0B5719_PackageProduct.framework/BrazeUI_30A23D419F0B5719_PackageProduct
Reason: tried: '/usr/lib/system/introspection/libswiftCoreGraphics.dylib' (no such file, not in dyld cache), '/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/lib/libswiftCoreGraphics.dylib' (no such file),
Description
Environment
Xcode version: Xcode15 Beta1
Firebase Component: Crashlytics
Installation method: Swift Package Manager (SPM)
Firebase SDK version: 10.4.0
Problem
During the build process of my iOS application, I encountered an error related to processing the Info.plist file.
Here is the error message:
error: Info.plist Error Unable to process Info.plist at path /Users/...../Info.plist This could be a timing issue, make sure the Firebase run script build phase is the last build phase and no other scripts have moved RakutenIchiba.app from the location Xcode generated it. You can also add '$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)' as an "Input Files" dependency for your Firebase run script build phase.
Github Link:
https://github.com/firebase/firebase-ios-sdk/issues/11400
Reproducing the issue
Steps to Reproduce
[Add the steps you take to reproduce the issue. This could be setting up a new project, adding Firebase via SPM, adding a Run Script phase, etc.]
What I've tried
I've checked the order of Build Phases to make sure the Run Script phase for Firebase is the last phase.
I've verified the location and reference of the Info.plist file.
I've cleaned the project and cleared the derived data.
[Add any other troubleshooting steps you've tried.]
Despite these attempts, the issue persists. Any guidance or suggestions to resolve this would be appreciated.
Thank you.
Firebase SDK Version
10.4.0
Xcode Version
15.0 Beta1
Installation Method
Swift Package Manager
Firebase Product(s)
Crashlytics
Targeted Platforms
iOS
Relevant Log Output
No response
Hi,
I'm getting warning in my Swift package where one of external dependency supports from iOS8.0, is it as bug in xcode or do we need to ask 3rd party developer to remove iOS8.0 supports, i believe they need to support library in cocoapods for iOS8.0 as well
Warning:
IPHONEOSDEPLOYMENTTARGET is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99
Forum thread: https://forums.swift.org/t/unable-to-import-multiple-targets-from-external-dependency/39030/3
Sometimes widget UI does not refresh immediately even if you call reloadAllTimelines and takes 2-3 minutes to reflect that change in UI in gallery and home screen, is it known bug or anything i'm missing which i'm not sure of atm
When i debug on simulator or device most of them time my widget shows black screen or flickers a lot, i guess during loading async data in timeline provider it has to show placeholder but it's not happening at all, in release build it's better than debug build but still placeholder does not show anyone has same issue or any solution?
NOTE: My widget is intent configuration based and provides dynamic option
I’m trying to load remote image in widget ui but unfortunately when image downloaded widget body is not called again sometimes to render image but same code works fine regular swiftui project, please let me know if there is any solution to it since it’s release blocker, below is pseudocode sorry i typed from my mobile
Struct ContentView: View {
@ObservedObject vat imageLoader: ImageLoader
var body: some view {
Text(some text)
if let image = imageLoader.image {
Image(uiimage: image)
.resizable()
.frame(width:40, height:40)
}
}.onAppear {
imageLoader.load()
}
}
Thanks