1. Products
  2.   Presentation
  3.   Swift
  4.   Aspose.Slides Cloud SDK for Swift

Aspose.Slides Cloud SDK for Swift


Swift SDK to Read, Write & Export Presentations

Swift Cloud API to Create, Read, Manage and Convert PowerPoint (PPT, PPTX), OpenOffice (ODP) Pesentations in the cloud.

Aspose.Slides Cloud SDK for Swift is a comprehensive cloud SDK that allows Swift developers to interact with Aspose.Slides Cloud API and create, modify, and convert presentations in various formats including PowerPoint (PPT, PPTX), OpenOffice Impress (ODP), and many more. This SDK simplifies the process of working with presentations and allows developers to focus on their core business logic. The API supports reading and writing numerous presentation file formats such as XLS, XLSX, XLSB, XLSM, XLT, XLTX, XLTM, ODS, XML, CSV, TSV, TXT (TabDelimited), HTML, MHTML, and so on.

Aspose.Slides Cloud SDK for Swift is very easy to handle and has provided various advanced as well as basic features for working with PowerPoint presentations in the cloud, such as creating new presentations from scratch, modifying existing presentations, adding and removing slides, adding and modifying text, inserting images & shapes, add charts to presentations, manage tables inside presentations, perform various formatting operations, copying layout slide from source presentation, merging multiple presentations, Set or remove presentation document properties, finding & replacing text on a specific slide, manipulating page setup, managing page header & footer, splitting presentation into multiple ones and many more.

Aspose.Slides Cloud SDK for Swift provides seamless integration with Aspose.Slides Cloud API to allows Swift developers to export PowerPoint presentations to several other file formats, such as HTML, PDF, POTX, PPSX, PPTM, PPSM, POTM, ODP, OTP, TIFF, XPS, JPEG, PNG, GIF, BMP, SVG, SWF and many more. Using Aspose.Slides Cloud SDK for Swift, software developers can easily manage text within their presentations and can easily add and modify the text, change text formatting, set font styles and colors, and perform various text-level operations such as adding hyperlinks, managing bullets and numbering, and performing spell-checking. With its wide range of features and capabilities, this SDK makes it easier for developers to work with presentations, create, modify, and convert them to different formats, and focus on their core business logic.

Previous Next

Getting Started with Aspose.Slides Cloud SDK for Swift

The recommend way to install Aspose.Slides Cloud SDK for Swift is using CocoaPods. Please use the following command for a smooth installation.

Install Aspose.Slides Cloud SDK for Swift via CocoaPods

target 'myproj' do
  pod 'AsposeSlidesCloud', '~> 22.6.0'
You can also download it directly from Aspose product release page.

Create PPT, PPTX Presentations via Swift

Aspose.Slides Cloud SDK for Swift makes it easy for software developers to create as well as manage various types of presentations inside their own Swift applications. Software developers can create an empty presentation with just a couple of lines of Swift code. There are several other important features part of the library related to presentations management such as exporting existing presentation to other file formats, opening existing presentations, protecting presentation using password, new Presentation creation using HTML document, splitting/merging presentations, searching text form Excel files, compressing Excel files and many more.

Create a New Presentation via Swift API

import Foundation
import AsposeSlidesCloud

let configuration = Configuration(appSid: "YourAppSid", appKey: "YourAppKey")
let slidesApi = SlidesAPI(configuration: configuration)

let createPresentationRequest = CreatePresentationRequest(name: "Test Presentation", password: "password", folder: "PresentationFolder")

slidesApi.createPresentation(request: createPresentationRequest) { (response, error) in
    if let error = error {
        print("Error Occured: \(error)")
    } else {
        print("Presentation Created: \(response?.name)")

Add & Manage Charts in Presentations via Swift API

Aspose.Slides Cloud SDK for Swift has included support for working with different types of charts inside PowerPoint (PPT, PPTX) and OpenOffice (ODP) presentations in the cloud. Software developers can create Coulmn charts, pie charts, bubble charts, scattered charts, sunburst charts and many more. There are different types of features part of the API for handling charts in presentations such as add or delete chart category, setting chart axis properties, setting chart legend properties. Add & remove chart Datapoints, setting wall properties of a 3D chart and many more.

How to Modify Properties of an Existing Chart via Swift API?

let getRequest = GetSlidesShapeRequest(
    name: "presentation.pptx",
    slideIndex: 1,
    shapeIndex: 1

slidesAPI.getSlidesShape(request: getRequest) { response, error in
    if let error = error {
        print("Error retrieving chart: \(error)")
    } else if let shape = response?.shape {
        shape.chart.chartTitle = "Updated Title"
        let putRequest = PutUpdateShapeRequest(
            name: "presentation.pptx",
            slideIndex: 1,
            shapeIndex: 1,
            shape: shape
        slidesAPI.putUpdateShape(request: putRequest) { response, error in
            if let error = error {
                print("Error updating chart: \(error)")
            } else {
                print("Chart updated successfully")

Manage Shapes in Presentations via Swift API

Aspose.Slides Cloud SDK for Swift enables software developers to handle shapes related activities inside PowerPoint and other types of presentations in a simple and convenient way. Software developers can use the Swift SDK to create, modify, and delete shapes, as well as to set various properties of the shapes. It supports adding shapes to a slide, extracting shapes from a slide, working with group shapes, adding image to shape, deleting unwanted shapes, importing shapes From SVG, and many more. The following example shows how to add shape to a slide using Swift commands.

How to Add a Shape to a Slide via Swift API

let request = AddShapeRequest(name: "New Shape", slideIndex: 1, shape: Shape())
try asposeSlidesApi.addShape(request: request)

// Modify a shape

let request = UpdateShapeRequest(name: "Updated Shape", slideIndex: 1, shapeIndex: 1, shape: Shape())
try asposeSlidesApi.updateShape(request: request)

Add, Remove or Replace Text in Presentations via Swift

Aspose.Slides Cloud SDK for Swift gives software developers the capability to handle text in different ways inside their PowerPoint presentations. The Swift API has include numerous features for working with Text inside presentations such as insert a new paragraph, read properties of paragraph, remove a range of paragraph from presentations, read text items from presentation, replace text, highlighting text in presentation, and many more.