Post

Replies

Boosts

Views

Activity

Reply to Silent Push Notifications doesn't work properly on iOS 15
Nothing runs while in the background for an extended period of time. You have to make sure the project is set up correctly for push notifications. Pick a topic below: https://developer.apple.com/documentation/pushkit/supporting_pushkit_notifications_in_your_app/ https://developer.apple.com/videos/play/wwdc2020/10095/ https://developer.apple.com/documentation/watchkit/notifications/enabling_and_receiving_notifications/
Jan ’22
Reply to How to get the output of a for-in loop into a single DataFrame instead of many Dataframes
First make your data model conform to Codable Encode your model (albumtracks) to JSON data Init DataFrame with JSONData. Example: struct Track: Encodable {     var name: String     var value: String } let tracks = [ Track(name: "Red", value: "Angry birds"), Track(name: "Mighty Eagle", value: "Angry birds #2"), Track(name: "Chuck", value: "Angry birds #3") ] let json = try? JSONEncoder().encode(tracks) let dataframe = try? DataFrame(jsonData: json!) ┏━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓ ┃   ┃ name         ┃ value          ┃ ┃   ┃ <String>     ┃ <String>       ┃ ┡━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩ │ 0 │ Red          │ Angry birds    │ │ 1 │ Mighty Eagle │ Angry birds #2 │ │ 2 │ Chuck        │ Angry birds #3 │ └───┴──────────────┴────────────────┘ 3 rows, 2 columns
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to is it possible to use gestures with SwiftUI Table?
use .onTapGesture(count:, perform:) Example: SwiftUI Table         Table(selection: $selection, sortOrder: $sortOrder) {             TableColumn("Variety", value: \.variety)             TableColumn("Days to Maturity", value: \.daysToMaturity) { plant in                 Text(plant.daysToMaturity.formatted())                     .onTapGesture(count: 2) {                         tapped.toggle()                     }.alert("Close", isPresented: $tapped) {                         Button {                             tapped.toggle()                         } label: {                             Text("Bye")                         }                     }       }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22