Questions tagged [publisher]

325 questions
1
vote
1 answer

Bind the view with result of multiple publishers

I am new to Combine and trying to use it in my application for validation of a form. It is a typical form with first name, last name, email and phoneNumber. There will be a submit button which will be initially disabled and will become active once…
pankaj
  • 7,878
  • 16
  • 69
  • 115
1
vote
2 answers

Reading MS Publisher Files?

Has anyone seen a way to read/update the text in a Microsoft Office Publisher file (.pub)? I don't think Open XML supports that. The only way I found so far would be via Office Interop, but that is not a good solution on the server. Any other ideas?
Remy
  • 12,555
  • 14
  • 64
  • 104
1
vote
1 answer

Published Bool variable resetting automatically

I have the following simple SwiftUI view which contains a component containing a list of marketing preference options with checkboxes and a button to update the preferences: @StateObject var marketingPreferencesViewModel:…
DevB1
  • 1,235
  • 3
  • 17
  • 43
1
vote
0 answers

MQTT client infinite loop with script

I have a problem. I am trying to make remote control from my PC of my RPi using MQTT. The goal is to control Pi (turn the LED on and off) from Sript1 by publish and to recieve MQTT message back from Script 2 aswell by publish, that I can store in…
Matouš Hucl
  • 9
  • 1
  • 4
1
vote
1 answer

ZeroMQ - subscriber is able to receive data from 1st publisher but does not receive from 2nd publisher which is up after a few loops

In following code. Publisher thread publish 5 messages then again new publisher socket is supposed to send data to subscriber but subscriber is in while(1) loop for recv() and never get message from 2nd publisher. How subscriber can connect to…
munish
  • 11
  • 1
1
vote
1 answer

How to check the current publisher type in Xcode?

After putting some operators on a publisher I am curious as to what the current return value and/or error is. Is there a quick way in Xcode that you can check that? I would like to see something like Map,…
Mark
  • 16,906
  • 20
  • 84
  • 117
1
vote
1 answer

Swift Combine: Separate published array and then assign

I have a publisher which returns an array of RetailStoreSlotDay objects. I need to separate these out based on a certain property and then assign to separate publishers within the view model. So, my publisher is: @Published var selectedDaySlot:…
DevB1
  • 1,235
  • 3
  • 17
  • 43
1
vote
1 answer

Combine conversion from model to viewModel gives error "Type of expression is ambiguous without more context when running .eraseToAnyPublisher()

I am trying to figure out why the last .eraseToAnyPublisher() is giving the aforementioned error, to me it seems all the types are well specified, aren't they? static func searchUsers(query: String) -> AnyPublisher<[UserViewModel], Never> { …
Fabrizio Prosperi
  • 1,398
  • 4
  • 18
  • 32
1
vote
1 answer

How to curl Publisher url in wso2 apim?

I have run the wso2 apim 3.2.0 server, there is no error in logs but when I am trying to open the publisher URL from chrome through bastion host server proxy, the page is not showing up. To debug from the console, I want some exact URL to curl to…
1
vote
1 answer

onReceive method on SwiftUI view won’t execute for a custom publisher

In my app, I use the onChange() method and a publisher to detect and notify of available screen width change. Also I use the innerWorkInProgress published property in my view model to control view's opacity. The view’s opacity is set to 0 on screen…
1
vote
1 answer

Published property not updating in SwiftUI

I have the following code where I expect updates to the Published property label to be reflected in the UI but it is not. public class ViewSearch { @ObservedObject var viewModel: ViewModel /// Main initializer for instance. /// -…
Phantom59
  • 947
  • 1
  • 8
  • 19
1
vote
0 answers

How to add publisher to electron-builder?

We are building a desktop app using electron. When installation we want to have a publisher or windows code signing certificate. How do i do that? Do i need to buy a certificate?
1
vote
1 answer

unable to move bottom view up on tap of TextField in swiftui?

I have a bottom view with a textField. This bottom view will show up on the action of a button. But the bottom view does not move up on taps of a text field. I have added the code for this. This is ContentView where the button is displayed. struct…
user1960279
  • 494
  • 1
  • 8
  • 24
1
vote
0 answers

Is it possible to capture events of VideoPlayer in SwiftUI?

I want to create a VideoPlayer in SwiftUI, but I want to react to events like: user starts the video user stops the video user drags the slider Is it possible somehow? All I found was one defualt event in NotificationCenter, but called…
Tamás Horváth
  • 219
  • 2
  • 8
1
vote
3 answers

SwiftUI detect when the view is not visible (kinda View will disappear) and stop publishers

I am developing an app using SwiftUI and Firestore. On the home page, I'm showing the list of items from Firestore that are updating properly when any updations from the backend. Now on the Top plus button, I am navigating to another screen to add a…
Rahish Kansal
  • 39
  • 1
  • 8