Xcode autocomplete behaviour depends on source order

Home   »   Xcode autocomplete behaviour depends on source order

import Combine
import Foundation

let wrapper = Wrapper(createPublisher: { Just("foo").eraseToAnyPublisher() })

// This will not produce any auto-complete suggestions
wrapper.createPublisher().

struct Wrapper {
    var createPublisher: () -> AnyPublisher
}

Leave a Reply

Your email address will not be published. Required fields are marked *