Hi folks,
I am new to SwiftUI. I've got the following small code. All I want is to refresh the List after pull-to-refresh. Is there any "reloadData" ?
Thanks in advance!
import SwiftUI
import SwiftUIRefresh
struct ContentViewFavorite: View {
let posts = Data.posts()
@State private var isShowing = false
var body: some View {
List {
ForEach(posts) { post in
PostViewFavorite(post: post)
}.padding(.all, 20)
}.pullToRefresh(isShowing: $isShowing) {
self.isShowing = false
}
}
}
struct ContentViewFavorite_Previews: PreviewProvider {
static var previews: some View {
ContentViewFavorite()
}
}
Post
Replies
Boosts
Views
Activity
Hi folks,
I've got an already huge project. I would like to add push notification support to it. Sadly, it fails. It even never fires didRegisterForRemoteNotificationsWithDeviceToken nor didFailToRegisterForRemoteNotificationsWithError. I created an empty Xcode project and started everything from scratch and it worked. But it doesn't work in the huge project. Any hints and tips? Is my project file corrupted since everything works fine in the separate project where I started from scratch?
Any help is appreciated - kindest regards!
I would like to have a small application which copies the entire camera roll to an attached USB-C SSD drive on an iPhone 15 series.
How could that be achieved?
What would be the steps necessarily?
Get path to device by using UIDocumentPickerViewController
Copy all items
Can anyone elaborate on these tasks?