Post

Replies

Boosts

Views

Activity

Reply to CameraView
CameraView is Part of HomeKit and for surveillance cameras. Are you sure you want that? An example for using the "regular" camera APIs can be found here.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’23
Reply to Looking for swift playgrounds for iPadOS 15
Unfortunately this is a general problem with the App Store. Only if you already once downloaded an older version of Swift Playgrounds on your account you can load this version again on older devices that don't run the current version. If you try to download an App for the first time, only the newest version will be offered and users of older devices have a problem.
Feb ’23
Reply to ShareLink with custom Transferable struct using FileRepresentation not working as expected
The whole "transferable" API seems pretty strange. Only some cases seem to work and no progress since last year.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to Can the permission dialog to access the photo library be bypassed?
If it could be bypassed, that would be a serious error. But you can always use: PHPhotoLibrary.requestAuthorization(for:handler:)
Replies
Boosts
Views
Activity
Jul ’23
Reply to CameraView
CameraView is Part of HomeKit and for surveillance cameras. Are you sure you want that? An example for using the "regular" camera APIs can be found here.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to ShareLink does not offer "save to files" when sharing "Transferable" items
No, unfortunately not. Neither filing a Radar (FB11766691) with Feedback Assistant on 13.12.22 nor joining a session on „Ask Apple“ yielded any actionable result.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to Xcode 15 Beta - Preview is showing remotely loaded Image, however, the development device is not.
Could this be a result of App Transport Security which is active on iOS devices but not in the simulator?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to Is there a Plug In or SwiftUI Kit for changing measurements
https://developer.apple.com/documentation/foundation/measurement
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Reply to What is the return/throw state of Publisher.values if there is no error and no values
Why don't you try it for yourself by using the Empty publisher? https://developer.apple.com/documentation/combine/empty
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to I want to implement a sticky header.
The guys from objc.io have a free video on implementing sticky headers in SwiftUI: https://talk.objc.io/episodes/S01E333-sticky-headers-for-scroll-views
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to Why is my List elements are deleted if I ON/OFF darkmode.
@ObservedObject can only be used for objects initialized outside of the view hierarchy. Use @StateObject instead.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Getting The operation couldn’t be completed. (OSStatus error 2003334207.)
I don't know the reason for your error, but perhaps this very current article helps you to find it: https://www.avanderlee.com/swift/operation-couldnt-completed-error-code/
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Looking for swift playgrounds for iPadOS 15
Unfortunately this is a general problem with the App Store. Only if you already once downloaded an older version of Swift Playgrounds on your account you can load this version again on older devices that don't run the current version. If you try to download an App for the first time, only the newest version will be offered and users of older devices have a problem.
Replies
Boosts
Views
Activity
Feb ’23
Reply to when compiling code in swiftui, returns with error message
In the code you posted the \ is missing from the string interpolation. Text("\(yourVar)") would be correct not Text("(yourVar)")
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’23
Reply to How to convert VNRectangleObservation item to UIImage in SwiftUI
x and y coordinates in observation are in UnitPoints of I remember correctly. They go from 0 to 1 instead of 0 to width/height. You would have to multiply them by the width or height of the picture.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to How to determine if AVPlayer stopped
Your could observe the rate property of AVPlayer via a publisher: audioPlayer.publisher(for: .rate)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23
Reply to PlaygroundBluetooth with SwiftUI
Could this be the same problem as described here?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’23