All Projects → hyperoslo → Presentation

hyperoslo / Presentation

Licence: other
📑 Presentation helps you to make tutorials, release notes and animated pages.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Presentation

markdown-slides
Using markdown, write simple but beautiful presentations with math, animations and media.
Stars: ✭ 64 (-97.87%)
Mutual labels:  presentation, slides
markdown-deck
A web component for presenters
Stars: ✭ 15 (-99.5%)
Mutual labels:  presentation, slides
s6
S6 Blank - Slideshow templates using HTML 5, CSS 3 'n' JavaScript 2017+ w/ Bespoke.js-compatible "microkernel"
Stars: ✭ 91 (-96.97%)
Mutual labels:  presentation, slides
slidev
Presentation Slides for Developers
Stars: ✭ 25,925 (+763.02%)
Mutual labels:  presentation, slides
getting-started-with-grails
Conference Talk - Getting Started with Grails
Stars: ✭ 23 (-99.23%)
Mutual labels:  presentation, slides
dekk
👁 A presentation tool written in react.js
Stars: ✭ 33 (-98.9%)
Mutual labels:  presentation, slides
cppcon2015
Repository for the slides and the code of my CppCon 2015 talks.
Stars: ✭ 93 (-96.9%)
Mutual labels:  presentation, slides
Marp
The entrance repository of Markdown presentation ecosystem
Stars: ✭ 3,378 (+12.45%)
Mutual labels:  slides, presentation
diorama
A set of React.js components to create easy en extendable presentations.
Stars: ✭ 17 (-99.43%)
Mutual labels:  presentation, slides
nicar tworkshop
Slides for #NICAR18 workshop on collecting and analyzing Twitter data
Stars: ✭ 23 (-99.23%)
Mutual labels:  presentation, slides
bs-spectacle
No description or website provided.
Stars: ✭ 15 (-99.5%)
Mutual labels:  presentation, slides
StageMate
StageMate is the smart assistant for your presentation. It will cover all aspects of your pitch from skipping slides to reminding you if you miss some major point.
Stars: ✭ 60 (-98%)
Mutual labels:  presentation, slides
Libreoffice Impress Templates
Freely-licensed LibreOffice Impress templates
Stars: ✭ 238 (-92.08%)
Mutual labels:  slides, presentation
eloc
1MB cli for authoring / presenting in markdown
Stars: ✭ 52 (-98.27%)
Mutual labels:  presentation, slides
Marp Core
The core of Marp converter
Stars: ✭ 224 (-92.54%)
Mutual labels:  slides, presentation
presentador
📽 An opinionated presentation framework. Just write what you want to present and it will do the rest.
Stars: ✭ 25 (-99.17%)
Mutual labels:  presentation, slides
Tslide
Terminal SlideDeck, supporting markdown.
Stars: ✭ 198 (-93.41%)
Mutual labels:  slides, presentation
Reveal Ck
Create slides with ruby (and usually in markdown)
Stars: ✭ 202 (-93.28%)
Mutual labels:  slides, presentation
slides
No description or website provided.
Stars: ✭ 27 (-99.1%)
Mutual labels:  presentation, slides
slides
Terminal based presentation tool
Stars: ✭ 5,347 (+78%)
Mutual labels:  presentation, slides

⚠️ DEPRECATED, NO LONGER MAINTAINED

Presentation logo

Version CI Status Carthage Compatible Swift License Platform

Looking for the easiest way of presenting something in your iOS app? Then you are in the right place. Presentation will help you make your tutorials, release notes and any kind of animated pages with the minimum amount of effort.

Presentation includes the following features:

  • Custom positioning: You can use Position for percentage-based position declaration.
  • Content: View model used for custom positioning and animations. It translates your percents to AutoLayout constraints behind the scenes.
  • Slides: You can use any kind of UIViewController as a slide. SlideController is your good friend if you want to use custom positioning and animation features on your pages.
  • Background: You can add views that are visible across all the pages. Also it's possible to animate those views during the transition to the specific page.
  • Animations: You can easily animate the appearance of a view on the specific page.

Presentation works both on the iPhone and the iPad. You can use it with both Swift and Objective-C.

Try one of our demos to see how it works:

pod try Presentation

Table of Contents

Usage

Presentation controller

import Presentation

let viewController1 = UIViewController()
viewController1.title = "Controller A"

let viewController2 = UIViewController()
viewController2.title = "Controller B"

let presentationController = PresentationController(pages: [viewController1, viewController2])

If that's the only thing you need, look into Pages.

Position

Position is percentage-based; you can use left, right, top, bottom to set a position.

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

Content view model

Content view model is a layer between UIView and Position. The current position is the center of a view by default, but can also be changed to the origin of a view.

let view = UIView(frame: CGRect(x: 0, y: 0, width: 200, height: 100))
let position = Position(left: 0.3, top: 0.4)

let centeredContent = Content(view: label, position: position)
let originContent = Content(view: label, position: position, centered: false)

Slides

let label = UILabel(frame: CGRect(x: 0, y: 0, width: 200, height: 100))
label.text = "Slide 1"

let position = Position(left: 0.3, top: 0.4)
let content = Content(view: label, position: position)

let controller = SlideController(contents: [content])

presentationController.add([controller])

Page animations

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])

  slides.append(controller)
}

presentationController.add(slides)

Background views

let imageView = UIImageView(image: UIImage(named: "image"))
let content = Content(view: imageView, position: Position(left: -0.3, top: 0.2))

presentationController.addToBackground([content])

// Add pages animations
presentationController.add(animations: [
  TransitionAnimation(content: content, destination: Position(left: 0.2, top: 0.2))],
  forPage: 0)

presentationController.add(animations: [
  TransitionAnimation(content: content, destination: Position(left: 0.3, top: 0.2))],
  forPage: 1)

Installation

Presentation is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Presentation'

Presentation is also available through Carthage. To install just write into your Cartfile:

github "hyperoslo/Presentation"

Components

Presentation wouldn’t be possible without the help of these components:

  • Pages: The easiest way of setting up a UIPageViewController

  • Cartography: Helps you set up your Auto Layout constraints declaratively and without any stringly typing!

Contributing

Please see our playbook for guidelines on contributing.

Credits

Hyper made this. We’re a digital communications agency with a passion for good code and delightful user experiences. If you’re using this library we probably want to hire you (we consider remote employees, too; the only requirement is that you’re awesome).

License

Presentation is available under the MIT license. See the LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].