Post

Replies

Boosts

Views

Activity

Project File Corrupted ?!
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!
0
0
266
Mar ’22
SwiftUI Refresh List ?!
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()     } }
1
1
5k
Dec ’20