1. Products
  2.   Presentation
  3.   Swift
  4.   Presentation

Swift Library to Create & Manage Presentations & Slides

Open Source Swift Library for Creating and Managing Slides, Transitions, Animations, and Other Presentation-related features inside Swift applications.

Presentation is a powerful open source Swift library helping software developers to create and manage presentation files inside their Swift application without using Microsoft PowerPoint. Open source software has been gaining popularity over the years as it provides developers with access to code and libraries that can be freely used, modified, and distributed. Another benefit of the Presentation API is that it is designed to work well with other Swift libraries and frameworks. The library gives developers the power to create and manage slides, transitions, animations, and other presentation-related features with ease.

The Presentation API is designed to be very easy to handle as well as flexible, enabling software developers to create presentations for a variety of use cases. The library has included support for several important features for working with presentations such as creating a new slide, managing existing slides, adding content to each slide, inserting images to a slide, adding Transitions and animations to presentation, controlling the timing of their production, set the duration of each slide, add triggers to their slides and many more.

The Presentation library allows creating dynamic and engaging presentations with less effort and cost. It can be particularly useful for developers who want to customize the API to suit their specific needs. The Presentation API is also designed to be cross-platform, meaning that it can be used on iOS, macOS, and other platforms that support Swift. Overall, the Presentation API is a powerful and flexible library for creating and managing presentations in Swift. Whether you are creating a simple slideshow or a complex interactive presentation, the Presentation API has the features you need to get the job done.

Previous Next

Getting Started with 'Presentation'

The recommend way to install Presentation Swift library is using CocoaPods. Please use the following command for a smooth installation.

Install 'Presentation' via CocoaPods

pod 'Presentation' 

Install Presentation via Cartfile

github "hyperoslo/Presentation" 

You can download the directly from GitHub

Add & Manage Slides in Presentations via Swift

The open source Swift Presentation library allows software developers to work with presentation slides inside their own Swift applications. It helps software developers to use custom positioning and animation features on their pages. There are several other features that can be used to enhance presentation, such as adding animation to slides, inserting animation icons, inserting text to slides, deleting unwanted slides, adding an image to slides, inserting several slides to a page, and many more. Software developers can use the addSlide() method of the Presentation class to add a new slide to your presentation.

Import PPTX Presentation Data via Ruby API

let presentation = Presentation(url: Bundle.main.url(forResource: "MyPresentation", withExtension: "pptx")!)
let title = Text(content: "My Slide Title", style: TextStyle(font: "Arial", size: 36), position: CGPoint(x: 0, y: 0))
let bullets = [
    Text(content: "Bullet Point 1", style: TextStyle(font: "Arial", size: 24), position: CGPoint(x: 0, y: 50)),
    Text(content: "Bullet Point 2", style: TextStyle(font: "Arial", size: 24), position: CGPoint(x: 0, y: 80))
let slide = Slide(background: .color(.white), elements: [title] + bullets)

try presentation.save(to: URL(fileURLWithPath: "MyModifiedPresentation.pptx"))

Add & Manage Animation via Swift Library

The free Swift Presentation library enables software developers to create and apply animation to their presentation pages inside Swift applications. The library allows developers to easily animate the appearance of a view on a specific page. The Presentation library has provided numerous options for customizing the animation. You can apply different types of animation such as Pop Animation, dissolve animation, Transition Animation, and many more. The following example shows how to apply page animation using Swift code.

How to Apply Page Animation via Swift API?

 let contents = ["Slide 1", "Slide 2", "Slide 3"].map { title -> Content in
  let label = UILabel(frame: CGRect(x: 0, y: 0, width: 200, height: 100))
  label.text = title

  let position = Position(left: 0.3, top: 0.4)

  return Content(view: label, position: position)

var slides = [SlideController]()

for index in 0...2 {
  let content = contents[index]
  let controller = SlideController(contents: [content])
  let animation = TransitionAnimation(
    content: content,
    destination: Position(left: 0.5, top: content.initialPosition.top),
    duration: 2.0,
    dumping: 0.8,
    reflective: true)
  controller.add(animations: [animation])