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
Reply to Expired Developer Account
You must be enrolled & paid up.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode error "fixup value out of range"
I tried reproducing the above in playgrounds and no issue: let array: Array<Double> = Array(repeating: -10000, count: 9*2000)
Replies
Boosts
Views
Activity
Jan ’22
Reply to Designables - build failed - Xcode 13
Ever thought of going SwiftUI?
Replies
Boosts
Views
Activity
Jan ’22
Reply to Using cloudkit in real devices
Did you deploy the cloud kit schema to production via the cloudkit console?
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to What are we supposed to use in place of flatMap ?
flatMap is alive and well. Just make sure your sequence of sequence and its elements are non-optional. If they are then you will trigger the deprecated version of the flatMap function which will then suggest the use of compactMap.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Is there a way to layout UIKit UIButton title & subtitle horizontally?
If there is not a public option then there is no way to alter the layout of the two titles other than playing around with the title padding to see what happens.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Keynote and Mac system crash
This is not the forum please try here http://communities.apple.com/ &/or open a bug report via the Feedback app.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Is it safe to put AVAudioSession calls not on main thread?
The documentation recommends this be done only at the time of playback or record but yet it shows an example using the app delegate. https://developer.apple.com/documentation/avfaudio/avaudiosession
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Jan ’22
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/
Replies
Boosts
Views
Activity
Jan ’22
Reply to XCode 13.2 Freezes When opening Large Swift File
Yeah, that is too big of a file, break it down into extensions and you will make it easier for the indexer. Try getting Xcode 13.2.1
Replies
Boosts
Views
Activity
Jan ’22
Reply to Push Notifications Capabilities
Read the documentation.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Why does this function not sort the data?
Move query.sortDescriptors = [sort] before the statement let queryOperation = CKQueryOperation(query: query)
Topic: App & System Services SubTopic: iCloud Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Health kit - Get shared health data along with my health data
Because you might have been invited doesn't mean you can programmatically access his or anyone else's data.
Replies
Boosts
Views
Activity
Jan ’22