Skip to content

A Swift playground explaining the concepts of the new Combine framework

License

Notifications You must be signed in to change notification settings

NomadStyle/CombineSwiftPlayground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Swift Playground explaining the concepts of the new Combine framework

This playground will contain all operators available in Combine.

Playgrounds require Xcode beta 2 and up

Xcode beta 1 didn't support using Combine in playgrounds. For this you need at least Xcode beta 2. MacOS Catalina is not required.

Implemented operators:

Credits to this repo for the list of operators

  • eraseToAnyPublisher()
  • eraseToAnySubject()
  • assign(to:on:)
  • buffer
  • catch
  • catch + just
  • combineLatest, tryCombineLatest
  • compactMap, tryCompactMap
  • append, prepend
  • debounce
  • print
  • delay
  • removeDuplicates, tryRemoveDuplicates
  • handleEvents
  • output(at:), output(in:)
  • filter, tryFilter
  • first, tryFirst
  • flatMap
  • switchToLatest
  • replaceEmpty(with:)
  • ignoreOutput()
  • Publishers.Just()
  • map, tryMap
  • merge, tryMerge
  • multicast
  • receive(on:)
  • reduce, tryReduce
  • retry, retry(3)
  • scan, tryScan
  • share
  • dropFirst(3)
  • drop(untilOutputFrom:)
  • drop(while:), tryDrop(while:)
  • sink
  • subscribe(on:)
  • collect(3)
  • last
  • throttle
  • timeout
  • collect()
  • zip

Interesting resources

Some interesting resources regarding Combine.

About

A Swift playground explaining the concepts of the new Combine framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%