Browse free open source Swift Libraries and projects below. Use the toggles on the left to filter open source Swift Libraries by OS, license, language, programming language, and project status.

  • One Monitoring Tool for IT, OT and Cloud | Free Trial Icon
    One Monitoring Tool for IT, OT and Cloud | Free Trial

    Vendor-agnostic monitoring across on-prem servers, cloud platforms and OT devices, all in one dashboard. No more tool sprawl.

    Modern infrastructure spans data centers, cloud platforms and factory floors, and every blind spot between them is a risk. PRTG supports SNMP, WMI, SSH and other standard protocols to monitor IT, OT and hybrid environments through one customizable dashboard. Build the views your team needs, from network health to application performance, without switching tools. Try PRTG free for 30 days now.
    Try PRTG Free
  • Veeam Data Platform v13.1 - Get Your Free Trial Icon
    Veeam Data Platform v13.1 - Get Your Free Trial

    Secure by design, portable by default. Recover clean, fast, anywhere. Start a free trial.

    Try Veeam Data Platform today. Experience the unified platform that's secure by design, portable by default, and proven to recover clean, fast, and anywhere.
    Try it Free
  • 1
    KeyboardKit

    KeyboardKit

    KeyboardKit is a Swift library that helps you build custom keyboard

    KeyboardKit helps you build custom keyboard extensions with Swift and SwiftUI. KeyboardKit is a Swift-based SDK that helps you build custom keyboard extensions with Swift and SwiftUI. It extends the native keyboard APIs and provides you with a lot of functionality. The KeyboardKit project is open-source and completely free. It's hosted at GitHub, which is where you find information, documentation, sample code, demo apps etc. KeyboardKit Pro is a license-based extension to KeyboardKit. It unlocks a bunch of pro features, like more locales, localized system keyboards, local and remote autocomplete etc. KeyboardKit comes with support for 50+ locales, with more being added over time. KeyboardKit has tools for customizing everything from keys, key behavior, layout, callout actions, audio & haptic feedback, colors and styling, autocomplete etc. The KeyboardKit app let you create keyboards directly on your iPhone and iPad.
    Downloads: 8 This Week
    Last Update:
    See Project
  • 2
    Ollama Swift Client

    Ollama Swift Client

    A Swift client library for interacting with Ollama

    Ollama Swift Client is a native Swift client library that enables developers to interact with Ollama models directly from Apple platforms such as macOS, iOS, and iPadOS. It is designed to feel natural within the Swift ecosystem, using modern language features like async/await and strong typing to provide a clean and intuitive developer experience. The library wraps the Ollama REST API into structured Swift calls, making it easy to perform tasks such as chat completion, text generation, and embeddings without dealing with raw HTTP requests. It supports streaming responses, allowing applications to display generated content progressively, which is especially useful for chat interfaces. The project emphasizes simplicity and integration with native app development, making it ideal for building AI-powered mobile or desktop applications that leverage local models.
    Downloads: 8 This Week
    Last Update:
    See Project
  • 3
    daisyUI 4

    daisyUI 4

    The most popular, free and open-source Tailwind CSS component library

    The most popular, free, and open-source component library for Tailwind CSS.daisyUI adds component class names to Tailwind CSS so you can make beautiful websites faster than ever. In a Tailwind CSS project, you need to write utility class names for every element. Thousands of class names just to style the most basic elements.
    Downloads: 8 This Week
    Last Update:
    See Project
  • 4
    Inject

    Inject

    Hot Reloading for Swift applications

    Hot reloading workflow helper that enables you to save hours of time each week, regardless if you are using UIKit, AppKit or SwiftUI. Hot reloading is a technique allowing you to get rid of compiling your whole application and avoiding deploy/restart cycles as much as possible, all while allowing you to edit your running application code and see changes reflected as close as possible to real-time. This makes you significantly more productive by reducing the time you spend waiting for apps to rebuild, restart, re-navigate to the previous location where you were in the app itself, re-produce the data you need. You don’t need to add conditional compilation or remove Inject code from your applications for production, it's already designed to behave as no-op inlined code that will get stripped by LLVM in non-debug builds.
    Downloads: 7 This Week
    Last Update:
    See Project
  • $300 Free Credits to Build on Google Cloud Icon
    $300 Free Credits to Build on Google Cloud

    New customers can spin up VMs, build with AI, and query data at no cost.

    Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
    Start Free
  • 5
    MaLiang

    MaLiang

    iOS painting and drawing library based on Metal

    MaLiang is a painting framework based on Metal. It supports drawing and handwriting with customized textures. The name of "MaLiang" comes from a boy who had a magical brush in a Chinese ancient fairy story. A Canvas is the basic component of MaLiang. You will paint all things on it. Canvas extends from MetalView, which extends from MTKView. MetalView handles all the logic with MetalKit and hides them from you. MaLiang supports the automatic adjustment of stroke size with painting force. 3D Touch is supported by default, and simulated force will be setup on devices that do not support this. forceSensitive is the property that force affects the stroke size. It should be set between 0 to 1. the smaller the value is, the less sensitive will be. if sets to 0, then force will not affect the stroke size.
    Downloads: 5 This Week
    Last Update:
    See Project
  • 6
    HaishinKit

    HaishinKit

    Camera and Microphone streaming library via RTMP and SRT for iOS, Mac

    Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS.
    Downloads: 4 This Week
    Last Update:
    See Project
  • 7
    About SwiftUI

    About SwiftUI

    Gathering all info published, both by Apple and by others

    About SwiftUI is a curated reference repository that gathers documentation, tutorials, videos, libraries, examples, and other resources related to Apple’s SwiftUI framework. It was created to provide developers with a single place to discover material that would otherwise be spread across many sources. Official Apple documentation and WWDC sessions are organized alongside community-created content. The collection includes books, courses, articles, testing resources, Xcode extensions, repositories, and application examples. Topics span layouts, navigation, animations, data flow, accessibility, Combine, architecture, and integration with UIKit and AppKit. Community contributions continually expand the directory with new SwiftUI learning resources. The project functions as a discovery catalog rather than a Swift package or application.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 8
    Cache

    Cache

    Nothing but Cache

    Cache doesn't claim to be unique in this area, but it's not another monster library that gives you a god's power. It does nothing but caching, but it does it well. It offers a good public API with out-of-box implementations and great customization possibilities. Cache utilizes Codable in Swift 4 to perform serialization. The cache is built based on a Chain-of-responsibility pattern, in which there are many processing objects, each knows how to do 1 task and delegates to the next one, so can you compose Storage the way you like. All Storage now are generic by default, so you can get a type of safety experience. Once you create a Storage, it has a type constraint that you don't need to specify a type for each operation afterward.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 9
    Hacking with Swift

    Hacking with Swift

    The project source code for Hacking with iOS

    HackingWithSwift is an extensive open-source repository that accompanies a popular tutorial series focused on teaching Swift programming for iOS development. It contains a large collection of example projects, exercises, and complete applications that guide learners from beginner to advanced levels. The repository is structured into different learning tracks, including UIKit-based development and modern SwiftUI approaches, allowing developers to explore multiple paradigms within the Apple ecosystem. Each project is designed to reinforce specific concepts such as UI design, data handling, animations, and app architecture. The material emphasizes hands-on learning, encouraging users to build real applications rather than passively consume theory. It is continuously updated to align with the latest versions of Swift, Xcode, and iOS, ensuring relevance for modern development practices.
    Downloads: 3 This Week
    Last Update:
    See Project
  • MongoDB Atlas runs apps anywhere Icon
    MongoDB Atlas runs apps anywhere

    Deploy in 115+ regions with the modern database for every enterprise.

    MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
    Start Free
  • 10
    KMM ViewModel

    KMM ViewModel

    Library to share Kotlin ViewModels with SwiftUI

    A library that allows you to share ViewModels between Android and iOS. The latest version of the library uses Kotlin version 1.9.22. Compatibility versions for older and/or preview Kotlin versions are also available. When subclassing your Kotlin ViewModel in Swift you might experience some issues in the way those ViewModels are cleared. Since currentTimeFlow is a StateFlow we don't ever expect it to fail, which is why we are using the assertNoFailure. However, in this case you'll notice that the publisher will fail with a JobCancellationException. The problem here is that before the TimeTravelViewModel is deinited it will already be cleared. Meaning the viewModelScope is cancelled and onCleared is called. This results in the Combine publisher outliving the underlying StateFlow collection.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 11
    Kingfisher

    Kingfisher

    Lightweight, pure-Swift library for downloading images from the web

    Kingfisher is a powerful, pure-Swift library for downloading and caching images from the web. It provides you a chance to use a pure-Swift way to work with remote images in your next app. Asynchronous image downloading and caching. Loading image from either URLSession-based networking or local provided data. Useful image processors and filters provided. Multiple-layer hybrid cache for both memory and disk. Fine control on cache behavior. Customizable expiration date and size limit. Cancelable downloading and auto-reusing previous downloaded content to improve performance. Independent components. Use the downloader, caching system, and image processors separately as you need. Prefetching images and showing them from the cache to boost your app. View extensions for UIImageView, NSImageView, NSButton and UIButton to directly set an image from a URL. Built-in transition animation when setting images. Customizable placeholder and indicator while loading images.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 12
    SnapKit

    SnapKit

    A Swift Autolayout DSL for iOS & OS X

    SnapKit is a Swift DSL that simplifies Auto Layout for iOS and macOS. It uses expressive chaining syntax to create layout constraints in code more cleanly and concisely than native APIs. Compatible with Swift Package Manager, CocoaPods, and Carthage—used extensively in iOS/macOS UI development.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 13
    Google Toolbox for Mac

    Google Toolbox for Mac

    Google Toolbox for Mac

    Google Toolbox for Mac (GTMSession) is a comprehensive collection of open source Objective-C utilities and frameworks developed by Google to support macOS and iOS application development. It consolidates reusable code components drawn from various internal Google projects, offering developers a wide range of tools for building efficient, maintainable Apple platform software. The library includes modules for networking, logging, testing, data handling, and user interface extensions, helping developers avoid reinventing common functionality. Its modular design allows developers to integrate only the components they need, improving project flexibility and performance. With well-documented interfaces and consistent coding standards, Google Toolbox for Mac serves as a reliable foundation for both small and large-scale applications. It continues to be widely used across open source and internal projects that target Apple ecosystems.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 14
    Sharaku

    Sharaku

    Image filtering UI library like Instagram.

    Image filtering UI library like Instagram. To run the example project, clone the repo, and run pod install from the Example directory first.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 15
    Swift Macros

    Swift Macros

    A curated list of awesome Swift Macros

    Swift Macros is a curated collection of Swift macro resources, tools, examples, and learning material. It is intended for developers who want to understand, build, test, and distribute Swift macros in modern Swift projects. The repository gathers community-created macros alongside frameworks, articles, Apple resources, tutorials, and related tooling. Its structure makes it easier to discover practical macro use cases without searching across scattered blog posts and packages. It is especially valuable for developers moving from code-generation tools toward Swift’s built-in macro system. Swift-Macros is not a single library, but a reference hub for learning the Swift macro ecosystem and finding useful implementation patterns.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 16
    XCoordinator

    XCoordinator

    Powerful navigation library for iOS based on the coordinator pattern

    Powerful navigation library for iOS based on the coordinator pattern. Create an enum with all of the navigation paths for a particular flow, i.e. a group of closely connected scenes. (It is up to you when to create a Route/Coordinator. As our rule of thumb, create a new Route/Coordinator whenever a new root view controller, e.g. a new navigation controller or a tab bar controller, is needed.). Whereas the Route describes which routes can be triggered in a flow, the Coordinator is responsible for the preparation of transitions based on routes being triggered. We could, therefore, prepare multiple coordinators for the same route, which differ in which transitions are executed for each route.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 17
    Amazon Chime SDK for iOS

    Amazon Chime SDK for iOS

    An iOS client library for integrating multi-party communications

    The Amazon Chime SDK for iOS makes it easy to add collaborative audio calling, video calling, and screen share viewing features to iOS applications by using the same infrastructure services that power meetings on the Amazon Chime service. This Amazon Chime SDK for iOS works by connecting to meeting session resources that you have created in your AWS account. The SDK has everything you need to build custom calling and collaboration experiences in your iOS application, including methods to: configure meeting sessions, list, and select audio devices, switch video devices, start and stop screen share viewing, and receive callbacks when media events occur such as volume changes, and manage meeting features such as audio mute and video tile bindings. You can integrate Amazon Chime SDK in your project from either CocoaPods or binaries through Github release.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 18
    Files

    Files

    A nicer way to handle files & folders in Swift

    Files is a lightweight Swift library that provides a more expressive and user-friendly interface for working with files and directories compared to the native FileManager API. It abstracts common file system operations into an object-oriented model, enabling developers to interact with files and folders using intuitive constructs such as Folder and File types. The library simplifies tasks like reading, writing, moving, renaming, and deleting files while maintaining robust error handling through Swift’s try-catch mechanisms. It also supports recursive traversal of directory structures, making it easy to iterate through file trees for scripting or automation purposes. Designed primarily for Swift scripting and tooling, Files can also be embedded into applications that require file system access. Its implementation is compact and efficient, often contained within a single file, which makes it easy to integrate into projects without adding unnecessary complexity.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 19
    HandyJSON

    HandyJSON

    A handy swift json-object serialization/deserialization library

    HandyJSON is a framework written in Swift which makes converting model objects( pure classes/structs ) to and from JSON easy on iOS. Compared with others, the most significant feature of HandyJSON is that it does not require the objects inherit from NSObject(not using KVC but reflection), nor implements a 'mapping' function(writing value to memory directly to achieve property assignment). HandyJSON is totally dependent on the memory layout rules inferred from Swift runtime code. We are watching it and will follow every bit if it changes. To support deserialization from JSON, a class/struct needs to conform to 'HandyJSON' protocol. It's truly protocol, not some class inherited from NSObject. For struct, since the compiler provides a default empty initializer, we use it for free. HandyJSON supports deserialization from the designated path of JSON.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 20
    Pulley

    Pulley

    A library to imitate the iOS 10 Maps UI

    A library to imitate the drawer in Maps for iOS 10/11. The master branch follows the latest currently released version of Swift. If you need an older version of Swift, you can specify it's version (e.g. 1.0.x) in your Podfile or use the code on the branch for that version. Older branches are unsupported. Pulley 2.9.0 has new properties to support a new display mode. The base functionality should work without any significant changes. The biggest change is the new display mode of .compact to replicate Apple Maps Behavior on the iPhone SE size class devices. Pulley is an easy to use drawer library meant to imitate the drawer in iOS 10/11's Maps app. It exposes a simple API that allows you to use any UIViewController subclass as the drawer content or the primary content.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 21
    SwiftOCR

    SwiftOCR

    Fast and simple OCR library written in Swift

    SwiftOCR is a fast and simple OCR library written in Swift. It uses a neural network for image recognition. As of now, SwiftOCR is optimized for recognizing short, one-line long alphanumeric codes (e.g. DI4C9CM). We currently support iOS and OS X. If you want to recognize normal text like a poem or a news article, go with Tesseract, but if you want to recognize short, alphanumeric codes (e.g. gift cards), I would advise you to choose SwiftOCR because that's where it exceeds. Tesseract is written in C++ and over 30 years old. To use it you first have to write a Objective-C++ wrapper for it. The main issue that's slowing down Tesseract is the way memory is managed. Too many memory allocations and releases slow it down.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 22
    Vision Camera

    Vision Camera

    The Camera library that sees the vision

    VisionCamera was designed from the ground up to provide all features a camera app should have. You have full control over what device is used, and can even configure options such as frame rate, colorspace, and more. While having a lot of features, VisionCamera makes sure you don't get overwhelmed from the beginning. It provides hooks and functions to help you get started faster, and if you need full control, you can easily do that. Every functionality has been thoroughly documented and even errors are fully typed. Use TypeScript to get compile-time feedback on what has gone wrong.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 23
    AAChartKit Swift

    AAChartKit Swift

    An elegant modern declarative data visualization chart framework

    An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. AAInfographics is the Swift language version of AAChartKit which is object-oriented, a set of easy-to-use, extremely elegant graphics drawing controls,based on the popular open source front-end chart library Highcharts. It makes it very fast to add interactive charts to your mobile projects. It supports single touch-drag for data inspection, multi-touch for zooming, and advanced responsiveness for your apps. Unlike previous imperative programming techniques, drawing any custom chart in AAChartKit, you don't need to care about the inner implementation details which is annoying && boring. Describe what you want, you will get what you described.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 24
    Airbnb Swift Style Guide

    Airbnb Swift Style Guide

    Airbnb's Swift Style Guide

    Airbnb's Swift Style Guide. Note that brevity is not a primary goal. Code should be made more concise only if other good code qualities (such as readability, simplicity, and clarity) remain equal or are improved. This repo includes a Swift Package Manager command plugin that you can use to automatically reformat or lint your package according to the style guide. To use this command plugin with your package, all you need to do is add this repo as a dependency.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 25
    AlertKit

    AlertKit

    Native alert from Apple Music & Feedback

    AlertKit is an open source Swift library designed to replicate the native alert and feedback popups seen in Apple Music and the App Store, giving iOS developers a simple way to integrate polished, system-like notifications into their applications. It focuses on delivering visually consistent and animated alert components that closely match Apple’s design language, including styles inspired by iOS 16 and iOS 17 system interfaces. The library supports both UIKit and SwiftUI, making it flexible for developers working across different iOS UI frameworks while maintaining a unified implementation approach. AlertKit provides predefined alert types such as success, error, heart, and message indicators, along with built-in haptic feedback to enhance the user experience and mimic native system interactions. Developers can easily present and dismiss alerts programmatically, and the API is structured to allow both quick usage and deeper customization when needed.
    Downloads: 0 This Week
    Last Update:
    See Project
  • Previous
  • You're on page 1
  • 2
  • 3
  • Next