Giter Site home page Giter Site logo

Comments (9)

freak4pc avatar freak4pc commented on July 20, 2024 1

Fixed in 0.3.0. Thanks @TTOzzi !

from combinecocoa.

freak4pc avatar freak4pc commented on July 20, 2024

Definitely sounds like a bug. @jdisho let me know if you might have some time looking into this ?
Otherwise I'll try carving some time in a couple of days.

from combinecocoa.

kevinrenskers avatar kevinrenskers commented on July 20, 2024

Weirdly enough I can't reproduce the problem with a minimal repro project, but it's definitely a problem with my project. Not sure what's going on here. I'll investigate more and report back, hopefully with a repro project.

from combinecocoa.

freak4pc avatar freak4pc commented on July 20, 2024

Any chance you're accidentally also setting a regular delegate with the proxy? Perhaps in a storyboard or something ?

from combinecocoa.

kevinrenskers avatar kevinrenskers commented on July 20, 2024

No. But I did manage to boil it down to this:

import UIKit
import Combine
import CombineCocoa

class SearchViewController: UIViewController {
  @IBOutlet var searchBar: UISearchBar!
  @IBOutlet var collectionView: UICollectionView!

  private var subscriptions = Set<AnyCancellable>()

  override func viewDidLoad() {
    super.viewDidLoad()

    searchBar.textDidChangePublisher
      .sink { print("Text changed: \($0)") }
      .store(in: &subscriptions)

    collectionView.didSelectItemPublisher
      .sink { print("Item selected: \($0)") }
      .store(in: &subscriptions)
  }
}

searchBar.textDidChangePublisher never fires, until you remove collectionView.didSelectItemPublisher.

from combinecocoa.

kevinrenskers avatar kevinrenskers commented on July 20, 2024

Repro project: CombineCocoaTest.zip

from combinecocoa.

jdisho avatar jdisho commented on July 20, 2024

Hey @freak4pc! Currently I'm in holidays and I will not be home until Sunday.

from combinecocoa.

freak4pc avatar freak4pc commented on July 20, 2024

I'm pretty sure I know why this happens but will need to investigate.

from combinecocoa.

kevinrenskers avatar kevinrenskers commented on July 20, 2024

I hope you can figure it out! Right now I have to rip out a whole bunch of delegate publishers from my app because yeah they're conflicting with each other. If there is anything I can do to help test a fix, let me know.

from combinecocoa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.