Xcode 11 beta 4: 'Empty' is not a member type of 'Publishers'

How can I fix this?

            .catch { err -> Publishers.Empty<TodosModel, Never> in
                return .init()
            .receive(on: RunLoop.main)
            .assign(to: \.todos, on: self)

Remove Publishers prefix. Some types were moved to the top level now (maybe more will follow in the next betas).

1 Like

@DevAndArtist Thanks

Terms of Service

Privacy Policy

Cookie Policy