Post

Replies

Boosts

Views

Activity

Reply to UIRefresh not working for my project?
Structs are not a thing in Objective-C hence why you cannot add @objc to your function. The "real" solution is to use a Coordinator class to handle this (see makeCoordinator in the documentation. Two other alternatives to consider: Create a UIView with the WKWebView and selector inside, or Subclass WKWebView and add both your refresh control and selector inside The reason for your troubles is due to your SwiftUI "view" not really being a view, but a representation of what will become your view. The actual view that is rendered on screen may be a different instance. This is where the Coordinator comes in because it it persisted throughout your "view's" lifetime and passed between instances.
Jul ’24
Reply to xcode16 beta not support iAd
iAds is entirely deprecated. To quote the documentation: After February 7, 2023, all requests made to the Apple Search Ads iAd Attribution API will return with a value of "iad-attribution" = false, or errors. See requestAttributionDetails(_:). Use the AdServices framework for current attribution integration with the Apple Search Ads Campaign Management API for devices using iOS 14.3 and later. Attribution isn’t available for downloads and redownloads from devices using iOS 14.2 or earlier.
Jul ’24