Comment by Zsolt on 'SWIFT_NORETURN' macro redefined
Sorry for the delay. Yes, I think it happens to be a circular import involved, but I am not declaring it explicitly, which means I won't be able to check for the existence of it. The project target is...
View ArticleComment by Zsolt on 'SWIFT_NORETURN' macro redefined
See below @EmilioPelaez, I am not adding the definition myself, instead one is generated into the "My-Project.swift" file, and the other one seems to be a "shim" in the simulator's...
View ArticleComment by Zsolt on Updating SwiftUI view from Core Data non scalar attribute
Thanks @Alladinian for the answer. It works great. I'd love to have this factored out to make it cleaner, but it seems the solution provided by vadian above doesn't seem to work unfortunately. I ended...
View ArticleComment by Zsolt on 'SWIFT_NORETURN' macro redefined
Thanks for the tip @ZGI6YXNt . I think my problem is that I have a class in a .h file that conforms to a protocol defined in a swift file, different targets. I was trying to go around this problem by...
View ArticleComment by Zsolt on SwiftUI swipeActions reload results in leading blank...
Good point about empty. I seem to forget that sometimes.
View ArticleComment by Zsolt on SwiftUI isSearching dismiss behaviour on iOS 15
Thanks @tail. I think you can probably find reasonable use cases where you might want the search bar to stay active even though no search text is entered, e.g. you might have search suggestions, or my...
View ArticleComment by Zsolt on Is it safe to mark the FileManager Sendable?
Good questions @Cristik! I used the new concurrency for this method to gain some exposure to this new technology, but it might not be the perfect tool for the job. Xcode 13 did not have any warnings,...
View ArticleComment by Zsolt on Android/Kotlin search dialog keyboard change icon
Thanks Shiv. Sorry, I am a bit new to this. Where do I need to change that? Doing it in the options_menu doesn't seem to have an affect. Same in the AndroidManifest.
View ArticleComment by Zsolt on SqlDelight KMM app where is the generated SQL database...
Thanks @Dai! I found a good explanation of various contexts here: stackoverflow.com/a/10641257/429763 So the emulator was here: ~/.android/avd/ and then based on the applicationContext debug details...
View ArticleComment by Zsolt on Jetpack Compose - Change startDestination of navigation...
That link above (principles of navigation) is great! I think the onboarding screen could fall into the conditional navigation category though :thinking...
View ArticleComment by Zsolt on How to convert completion handler in `init` into async...
The reason I said "might not have been intended for initializers" is that in this case initialization and completion handlers are used together. How would you return what you've just initialized while...
View ArticleData to UIImage to UIImageJPEGRepresentation equality failure
Why does this transformation fails to result in the same image data? let path = Bundle(for: type(of: self)).url(forResource: "Image", withExtension: "jpg") inputData = try! Data(contentsOf: path!) let...
View ArticleCore data binary data with allows external storage crashes
I have a crash with the following log on iOS 12.0.1:ImageIO: CFDataGetBytes: data: 0x28539b2f0 size: 154262 offset: 8 count: 8 dst: 0x16dbf86f0 External data reference cant find underlying file. Fatal...
View ArticleUIImage to CIImage to UIImage results in pngData returning nil on iOS 12
I have an UIImage that I snap from the camera.I want to do some image manipulations so I transform it to a CIImage.CIImage *ciImage = [CIImage imageWithCGImage:snappedImage.CGImage];Next I do my thing,...
View ArticleCat * and order of similarly named files
I download a number of log files, but they are auto named during download so the order is incorrect:21-Jan-2020 20:01.log21-Jan-2020 20:02 1.log21-Jan-2020 20:02.log21-Jan-2020 20:03 1.log21-Jan-2020...
View ArticleDRY code: how to call an implementation from another protocol
I have some code I want to DRY up, I don't want to repeat/maintain the same code at multiple places.protocol Programable { var log: String { get }}protocol Convertable { var status: String { get set...
View ArticleCoreData: realizing faults in the description method by going against Apple's...
Although the description property doesn’t cause a fault to fire, if you implement a custom description that accesses the object’s persistent properties, this does cause a fault to fire. You are...
View ArticleiOS 13 AASA file not downloading
I noticed that the AASA file is not downloaded (by monitoring the API calls in Charles) on iOS 13.1. I was going through the WWDC https://developer.apple.com/videos/play/wwdc2019/717/ video, but could...
View ArticleReceived memory warning
I am working on an app with xml parser, uiwebview, navigationcontroller, displaying a lot of images on the main controller, that remains in the memory throughout the whole life of the app. I store my...
View ArticleSwiftUI NavigationLink navigationBarHidden with sheet flashes screen
Sorry for the bad quality. The content shows how the screen is refreshed when a new view is shown in SwiftUI.The Welcome screen has the navigation bar hidden:var body: some View { SwiftUI.Form {...
View Article
More Pages to Explore .....