Post

Replies

Boosts

Views

Activity

Reply to Safari Web Extension does not load content script on iOS 15
It appears that content.js won't be injected into web pages that you have not given permission for. I am noticing that on iOS and macOS I have to go searching for a tiny yellow caution icon when permissions are set to 'Ask'. Selecting this caution icon, an alert-like box pops up asking to give permission for one day or permanently. I could not find the injected scripts in the debugging tools Sources, until after I gave permission. Then mysteriously, the extension started working again.
Feb ’22
Reply to SwiftUI Table View is Crashing
Still occurring on random occasions in iOS 14.6 in several separate views using code: struct FilteredListView: View { @EnvironmentObject var numberState: NumberState @FetchRequest var numbers: FetchedResults<Purging>     private var downloadCompletePublisher = NotificationCenter.default         .publisher(for: .dataDownloadComplete)         .map { notification in             return notification.userInfo as! [DataSources.Source : Int]         }        .receive(on: RunLoop.main) var body: some View { List {     ForEach(Array(numbers.enumerated()), id: \.element.uuid) { index, number in         NavigationLink(destination: NumberDetailView(number: number)) {             NumberRowView(number: number)         }     } } .add(SearchBar(searchText: $numberState.searchText, "Search for N-numbers")) .id(numberState.refreshID) // <-- removing this seems to eliminate the issue     .onReceive(downloadCompletePublisher) { userInfo in             checkForUpdatedNumbers(userInfo: userInfo)         } } init(sorter: NumberSorter) { ... code to execute fetch request into _numbers } } obviously, we don't have access to the UITableView data source methods, but I'd like to know how to peek into SwiftUI's execution.
Jun ’21