All Questions
Tagged with objective-c swiftui
61
questions
-1
votes
0
answers
55
views
SwiftUI Scroller flashing entire collection when inserting new data
I Have a SwiftUI view which is a collection that displays each item on a full screen sized view. While the user is viewing and interacting with the items (it's a view that shows photo or video that ...
2
votes
0
answers
168
views
_objc_msgSend crash swiftui
I have an iOS app and I receive some crashes related to _objc_msgSend. I only know that this crash happens when backgrounding the app.
The crash log:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
...
0
votes
0
answers
39
views
Why are my NSWorkspace notification and listeners not being recieved or firing?
I recieve no errors, my app runs with no errors. None of the events are triggered at sleep / wake or when the listened are registered.
What am I doing wrong here? Thanks!
import SwiftUI
@main
struct ...
0
votes
0
answers
81
views
Issue with Status Bar Icon Not Displaying in macOS Flutter App
I'm developing a macOS application using Flutter and I've encountered an issue where the status bar statusItem are not displaying on some computers. Below is the relevant portion of my AppDelegate....
-1
votes
1
answer
81
views
Notification Center - cannot be used on instance of nested type
I am trying to set up my Swift text and labels to work with notification center so what is displayed can be changed using an objective C file. My UpdateConnectionTypeText and UpdateStatusText works ...
0
votes
0
answers
70
views
Display video call using PJSIP and SwiftUI in iOS
I am trying to render video using PJSIP but the video is not coming on video call. The audio call is working properly. On the click video call button, the Video opens above the Dial view.
As for now, ...
0
votes
1
answer
263
views
SwiftUI - Objc @protocol delgate function usage
I cannot figure how to implement an ObjC library delegate/protocol function in a SwifUI view/app.
It works well in an ObjC or swift application
Here is the code and explanation (I simplified so there ...
2
votes
0
answers
1k
views
Build input file cannot be found: After Creating Bridging Header
I add some Objective-C libraries to my SwiftUI project using bridging header, Now am facing an error:
Build input file cannot be found: '/Users/.../../QPos-iOS/QPos-iOS-Bridging-Header'. Did you ...
0
votes
0
answers
391
views
Using Objective-C framework in SwiftUi application
This is my first Swift project. I did some Objective-C in the past, but I'm only just starting with Swift. I want to use the ConnectSDK within this SwiftUI project. I've created a bridging header and ...
0
votes
1
answer
436
views
How to remove alert view button in SwiftUI
I have scenario where I need to display an alert without any button. Is it possible to remove the buttons from the default Alert in SwiftUI?
I know how to create a custom view as Alert. But I would ...
0
votes
1
answer
218
views
Animate and resize a linear gradient (CAGradientLayer) using drag and pan gesture
I am trying to animate and resize a CAGradientLayer using a pan and tap gesture but it's lagging. I am animating other things along with this gradientLayer but speed of animation of gradientLayer ...
0
votes
1
answer
71
views
Change Objective-C rootViewController to SwiftUI
I have a project built with React Native where for some feature I change the rootViewController from React Native to a Storyboard with the following code:
- (void) goToNativeView
{
UIViewController *...
-2
votes
1
answer
63
views
Swift: Can't change class attribute from @objc function
I'm trying to capture ProximitySensor activity on SwiftUI.
So I've created a class ProximityOberver and trying to update the attribute 'state' in the notification:
import SwiftUI
import UIKit
class ...
1
vote
1
answer
501
views
SwiftUI Update @State in closure
Below is SwiftUI code in question.
struct ContentView : View {
@State var connection = false
let disconnectListener: DisconnectListener = {
class Anonymous: NSObject, ...
0
votes
0
answers
199
views
Swift - Get .plist info and icon from .ipa
I'm currently listing out downloaded .IPA files, but I need to get information from them.
Steps:
1 - List out downloaded files from documents directory IF they contain .ipa extension
2 - I need to ...