Open-source project
NextLevel/NextLevel avatar
NextLevel/NextLevel

NextLevel wraps iOS camera capture in one shared object, and ARKit stays off until you set a compiler flag

⬆️ Media Capture in Swift

2,336 stars297 forksSwiftMIT

At a glance

What is it?
A Swift 6 library for multi-clip video recording, photo capture and frame processing on iOS 16 and later. ARKit and True Depth are opt-in builds, and the repository publishes no GitHub releases.
Who is it for?
NextLevel suits an iOS app that needs multi-clip recording with pause and resume, plus control over frame rate, focus, exposure and encoding, and that already builds with Xcode 16 and Swift 6. It does not suit a project targeting anything below iOS 16, or a team that needs tagged releases to pin against.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 172 days ago.
What is it written in?
Mainly Swift, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 26, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • NextLevel/NextLevel2,336 ★ · +6
Star history
Repository2026-10-122026-11-26
NextLevel/NextLevel2.3k2.3k

6 Stars in the last 45 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

NextLevel.shared is one global camera, driven by four delegates

NextLevel is a Swift camera system for iOS covering media capture and image streaming. Its entry point is a singleton, NextLevel.shared, and the example code configures it from a view controller's viewDidLoad. You assign NextLevel.shared.delegate, deviceDelegate, videoDelegate and photoDelegate to self, so the view controller receives session events, device changes, video buffer callbacks and photo callbacks through separate protocols.

A preview is a plain layer. The example creates a UIView at the screen bounds, sets its background to black, assigns NextLevel.shared.previewLayer.frame to the view's bounds and adds that layer as a sublayer. Starting and stopping the session belongs in viewWillAppear and viewWillDisappear, through NextLevel.shared.start() and NextLevel.shared.stop().

The singleton shapes everything. There is one camera session per process, so an app that needs two independent capture pipelines has no documented way to build them here. For the common case of a single camera screen, the shared object keeps setup short.

Pause ends a clip and record starts the next one

The feature that gives the library its identity is "Vine-like" video clip recording and editing. The mechanics are three calls. NextLevel.shared.record() starts recording. NextLevel.shared.pause() pauses and, in the words of the example, creates a clip. Calling NextLevel.shared.record() again resumes and starts a new clip.

swift
// Start recording
NextLevel.shared.record()

// Pause recording (creates a clip)
NextLevel.shared.pause()

// Resume recording (starts a new clip)
NextLevel.shared.record()

Clips are joined afterwards. The async example calls session.mergeClips(usingPreset: AVAssetExportPresetHighestQuality) on NextLevel.shared.session with try await, receives a URL, and then saves through PHPhotoLibrary. The release notes for the Swift 6 version mention fixed timestamp offset bugs for seamless clip merging, so older versions had trouble at exactly this join.

The video configuration shows the knobs: bitRate set to 6_000_000 for 6 Mbps, a preset of .hd1920x1080, and a maximumCaptureDuration built from a CMTime of 10 seconds with a timescale of 600. Audio has its own audioConfiguration object.

ARKit and True Depth are compiled out unless you pass USE_ARKIT or USE_TRUE_DEPTH

Two features, ARKit integration (marked beta) and True Depth camera support, are disabled by default. They switch on with the Swift compiler flags USE_ARKIT and USE_TRUE_DEPTH respectively.

The reason is App Review. Apple will reject apps that link against ARKit or the True Depth Camera API and do not use them, and the project points to issue #106 for that. Leaving the flags off keeps the symbols out of apps that do not need them.

For CocoaPods users the project suggests adding the flag through a Podfile post-install hook or through Xcode build settings. The sample hook looks for the NextLevel target and sets OTHER_SWIFT_FLAGS.

ruby
  installer.pods_project.targets.each do |target|
    # setup NextLevel for ARKit use
    if target.name == 'NextLevel'
      target.build_configurations.each do |config|
        config.build_settings['OTHER_SWIFT_FLAGS'] = ['$(inherited)', '-DUSE_ARKIT']
      end
    end
  end

The snippet only sets -DUSE_ARKIT. For True Depth you substitute -DUSE_TRUE_DEPTH, and the README does not show a combined form for enabling both. If you need both, verify the resulting array in your build settings.

Swift 6.0, Xcode 16.0 and iOS 16.0 are the floor

The requirements list three minimums: iOS 16.0 or later, which the project ties to modern concurrency features and the Task.sleep(for:) API, Swift 6.0, and Xcode 16.0 or later. An app that still supports iOS 15 cannot take this version as written.

One inconsistency appears in the documentation. The requirements say iOS 16.0, while the section heading for the async/await examples says iOS 15+. The same notes also list an iOS 16+ AsyncStream events API. Treat iOS 16 as the safe number and check the source before relying on the iOS 15 label.

The Swift 6 notes describe what changed: async/await with AsyncStream events, strict concurrency with Sendable conformance and actor isolation, contextual error descriptions through LocalizedError with recovery suggestions, and structured logging with OSLog. The legacy delegate-based API still works, so existing code that uses delegates does not have to migrate to the new event streams at the same time.

The project also lists crash fixes: an AudioChannelLayout crash (#286, #271), a photo capture crash (#280), audio interruption handling (#281) and video timing issues (#278).

Three ways in: Swift Package Manager, CocoaPods and loose source files

Swift Package Manager is marked as the recommended route. Add this to Package.swift:

swift
dependencies: [
    .package(url: "https://github.com/NextLevel/NextLevel", from: "0.19.1")
]

In Xcode the equivalent is File, then Add Package Dependencies. CocoaPods users write one line in the Podfile:

ruby
pod "NextLevel", "~> 0.19.1"

The third route is manual: drop the files from the Sources folder into your Xcode project. That route skips version resolution entirely, which suits a team that wants to patch the code locally.

Both package-manager examples pin to 0.19.1. The repository lists no GitHub releases, so the version you get depends on the tags the package manager can see. Confirm what your resolver actually picks before shipping. The top-level entries include Package.swift, NextLevel.podspec and a NextLevel.xcworkspace, which matches the three distribution paths.

Capture needs two Info.plist keys, and the camera and microphone are separate prompts

Before the session can start, the app's Info.plist needs usage descriptions. The project lists two:

xml
<key>NSCameraUsageDescription</key>
    <string>Allowing access to the camera lets you take photos and videos.</string>
<key>NSMicrophoneUsageDescription</key>
    <string>Allowing access to the microphone lets you record audio.</string>

The camera key covers photos and video frames. The microphone key covers audio and is the one people forget when they only test photo capture. The strings are shown to the user in the permission dialog, so write them in your own words.

The capability list behind these permissions is long: raw, JPEG and video frame photo capture, dual, wide angle, telephoto and true depth cameras, adjustable frame rates for fast and slow motion on supported hardware, depth data and portrait effects matte capture, video zoom, white balance, focus and exposure adjustment, flash and torch, mirroring, low light boost, smooth auto-focus, configurable encoding and compression, an animated GIF creator, and face, QR code and bar code recognition. Several of these depend on hardware, and the project says so for frame rate, which only changes on supported devices.

No GitHub releases, a last push in June 2026, and sibling packages for export and playback

The repository is not archived. Its last push was on 2026-06-08, and it lists no GitHub releases. Anyone who tracks updates through release notes has nothing to subscribe to, so watching tags or commits is the only option.

Two related projects cover what NextLevel leaves out. For exporting video, the project points to NextLevelSessionExporter. For playback, it points to Player from piemonte. NextLevel itself records, merges clips and exposes buffers, so an app that wants a polished export step or a custom player has to add those packages.

The project also offers an extensible API for image processing and computer vision through custom buffer processing, but the documented portion of the README gives no sample for it. The Sources folder is the place to read how buffers reach your code.

There is a build_docs.sh script, a .swiftlint.yml and a .swift-version file at the top level. The license is MIT. Some links in the README still point at the master branch while the default branch is main, so a stale link is possible when you follow them.

Editorial conclusion

NextLevel suits an iOS app that needs multi-clip recording with pause and resume, plus control over frame rate, focus, exposure and encoding, and that already builds with Xcode 16 and Swift 6. It does not suit a project targeting anything below iOS 16, or a team that needs tagged releases to pin against. Before adopting it, confirm which version tag your dependency manager resolves, because the repository lists no GitHub releases and the README pins 0.19.1. Also decide early whether you need ARKit or True Depth, since those only exist in a build with the matching compiler flag.

Frequently asked questions

What does NextLevel do on iOS?

NextLevel is a Swift camera system for easy integration, customized media capture and image streaming in iOS. Its headline feature is multi-clip "Vine-like" video recording.

What are the requirements for NextLevel?

iOS 16.0 or later, Swift 6.0 and Xcode 16.0 or later. The legacy delegate-based API still works alongside the async/await API.

How do I enable ARKit in NextLevel?

Add the Swift compiler flag USE_ARKIT, or USE_TRUE_DEPTH for the True Depth camera. Apple rejects apps that link ARKit or True Depth APIs without using them.

Official sources

  1. Issues
  2. License: MIT
  3. NextLevel/NextLevel on GitHub
  4. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/nextlevel-nextlevel.svg)](https://hysenlabs.com/projects/nextlevel-nextlevel)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/nextlevel-nextlevel.svg)](https://hysenlabs.com/projects/nextlevel-nextlevel)

Was this useful?