Post

Replies

Boosts

Views

Activity

Reply to OSLogStore can't access an app's extensions?
Please clarify "extensions" do you mean the extending of an already defined type or do you mean widgets, watch kit or some other Xcode app extension? If you're logging into a datastore on the disk you should not have a problem fetching from the entries but if you're using a logging level that just writes to memory then there is nothing to fetch. If the same data you're looking for is not visible in the mac console app when the phone is connected to the mac then that will also explain why the above code is not fetachable.
Topic: App & System Services SubTopic: Core OS 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 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 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 declare a TableColumn with nullable field?
Your decoding process will need a way to represent nil values probably in the form of "" values so the table column can bind to the table row while reading from the items provider if you're reading from one.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to NSPersistentCloudkitContainer Memory Leak -> Crash? (iOS 15 beta 4 & 5)
To date with the official release of iOS 15 & macOS 12 using Xcode 13.2.1 this is still an issue. The problem is still reflected with the mirror delegate as the source of the leaks on the macOS where the app is terminated during a cloud sync when it goes over 120 Gigs of ram and on the phone.
Replies
Boosts
Views
Activity
Jan ’22
Reply to OSLogStore can't access an app's extensions?
Please clarify "extensions" do you mean the extending of an already defined type or do you mean widgets, watch kit or some other Xcode app extension? If you're logging into a datastore on the disk you should not have a problem fetching from the entries but if you're using a logging level that just writes to memory then there is nothing to fetch. If the same data you're looking for is not visible in the mac console app when the phone is connected to the mac then that will also explain why the above code is not fetachable.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Create Configuration Sheet for ScreenSaverView
Sounds like you're asking others to do your homework. See the developer videos & associated documentation, That's the only way you will really learn anything on your own.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Swift UI Canvas Isn't Showing up
If you have an antivirus installed, remove it throw it away, you don't need it. Re-install Xcode if clearing the build folders doesn't work.
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
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 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 Why does this function not sort the data?
Move query.sortDescriptors = [sort] before the statement let queryOperation = CKQueryOperation(query: query)
Replies
Boosts
Views
Activity
Jan ’22
Reply to Push Notifications Capabilities
Read the documentation.
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 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 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 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 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