Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URLSession.shared
- .publisher(for: queryTypesEndpoint, using: pihole_token)
- .receive(on: DispatchQueue.main)
- .sink(receiveCompletion: { _ in }, receiveValue: { dictionary in
- if let queryTypes = dictionary["querytypes"] {
- self.queryTypes = queryTypes
- }
- })
- .store(in: &cancellables)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement