SlideKit

0.4.0

A library which helps you make presentation slides by SwiftUI
mtj0928/SlideKit

What's New

0.4.0 (macro support)

2023-12-15T14:53:32Z

✨New Feature

  • @Slide macro is available now!!
  • The target type of@Phase becomes simpler.
  • phase function is automatically generated by @Slide Developer can set the current phase for Xcode Previews.

SlideKit

SlideKit helps you make presentation slides on SwiftUI.
You can easily make presentation slides and customize the design perfectly because the all components are just SwiftUI's View.

Slides

Requirements

  • Xcode 15+
  • Swift 5.9

Documents

First, see the Tutorial for SlideKit.
You can learn how to use SlideKit and make presentation slides through making the sample presentation slides.

If you want to know more details, refer the DocC Style Document

Features

  • Support all SwiftUI Views🔥
  • Provide HeaderSlide, it is a template slide which has a title.
  • Support HeaderSlideStyle, so you can customize the design of the HeaderSlide.
  • Provide some utility view components
    • Code: Syntax Highlighted view (Only Swift is supported now.)
    • Item: Itemization view. Item supports nested structures.
  • Show the current slide index at bottom right on slide.
  • Support two windows, presentation window and presenter window.
  • Show scripts on only presenter window (only macOS)
  • Provide @Phase, so you can divide a one slide step by step.
  • Export PDF file (only macOS 13+)

Simple Example

You can create a presentation by SwiftUI like this.

@Slide
struct IntroductionSlide: View {
    var body: some View {
        HeaderSlide("SlideKit") {
            Item("SlideKit helps you make presentation slides by SwiftUI")
            Item("The followings are provided") {
                Item("Views")
                Item("Structures")
                Item("Utilities")
            }
        }
    }
}

And then, this is the result of the code.
IntroductionSlide

Presentations made with SlideKit

If you make presentations slide with SlideKit, add it to the following litst!!

  • After iOSDC: A presentation, which shares the hard points to make presentations slides by SwiftUI. (Japanese)
  • iOSDC23 A presentation, which shows a dependency injection strategy on SwiftUI. (Japanese)

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Mon Nov 11 2024 05:43:09 GMT-1000 (Hawaii-Aleutian Standard Time)