Swiftpack.co - Package - MKGitHub/MKBlockQueue

MadeInSweden Status

Version Carthage SPM CocoaPods

Platform Swift TestCoverage

๐ŸŒŸ Give this repo a star and help its development grow! ๐ŸŒŸ


MKBlockQueue allows you to create and chain blocks in a queue and execute them in serial order. Compared with NSOperation, with MKBlockQueue you decide yourself when a block is complete and when you want the queue to continue. You can also pass data from one block to the next in the queue.

Image of MKBlockQueue

See ViewController.swift for a simple example of usage.

Whatโ€™s New?

  • Version 1.1 is a major refactoring, and updates for Swift 4.2.
  • Version 1.0.4 adds documentation.


  • Swift Version 4.2
  • Xcode 10

How to Install

There is no framework/library distibution, I recommend that you simply add the MKBlockQueue.swift to your project. As this will allow you to easily find & read the MKBlockQueue API, and it will also allow MKBlockQueue to compile using your apps build settings.

  • Using Git: git clone https://github.com/MKGitHub/MKBlockQueue.git then add MKBlockQueue.swift to your Xcode project.
  • Manual Way: Add MKBlockQueue.swift to your Xcode project.
  • Using Carthage: In your Cartfile add github "MKGitHub/MKBlockQueue" ~> 1.1 then carthage update --no-build then add MKBlockQueue.swift to your Xcode project.
  • Using Swift Package Manager: swift-tools-version:4.0
  • CocoaPods support has been removed! ๐Ÿ™Œ๐Ÿ™๐ŸŽ‰ Never use CocoaPods! ๐Ÿ’€


Go to the documentation index page.

Used In Apps

MKBlockQueue is used in production in the following apps/games (that I'm aware of), these apps are together used by millions of users. Please let me know if you use MKBlockQueue.

  • Hoppa
  • McDonald's apps
  • Lรฅnekoll




Copyright 2016/2017/2018 Mohsan Khan

Licensed under the Apache License, Version 2.0.


Stars: 4
Help us keep the lights on


Used By

Total: 0


1.1 - Oct 28, 2018

Version 1.1 is a major refactoring, and updates for Swift 4.2.

1.0.4 - Jan 25, 2017

Version 1.0.4 adds documentation.

1.0.3 - Sep 17, 2016

1.0.2 - Aug 24, 2016

All updated for Swift 3 beta 6.

1.0.1 - Jul 4, 2016

Fixed crash where the MKBlockQueueCompletedBlockType should be an optional and not forced.