Swiftpack.co - heoblitz/SwiftPreview as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
heoblitz/SwiftPreview
XCode Preview template for UIkit based project.
.package(url: "https://github.com/heoblitz/SwiftPreview.git", from: "1.0.0")

SwiftPreview

XCode Preview template for UIkit based project.
Support custom file template class inherit from UIView and UIViewController.

How to use?

  1. Download Xcode Template & Install SwiftPreview
  2. Xcode > New File (Command + N)
    You can choose Preview or PreviewController.

  • Preview > (UIView, UITableViewCell, UICollectionViewCell, UICollectionReusableView)
  • PreviewController > (UIViewController, UITableViewController, UICollectionViewController)
  1. Make file then preview will work.

Download Xcode Template

Auto Setup

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/heoblitz/SwiftPreview/main/install.sh)"

Manual Setup

git clone https://github.com/heoblitz/SwiftPreview.git
cd SwiftPreview
mkdir -p ~/Library/Developer/Xcode/Templates/File\ Templates/SwiftPreview
cp -r Templates/. ~/Library/Developer/Xcode/Templates/File\ Templates/SwiftPreview

Installation

Swift Package Manager

Project > Project Dependencies > Add   https://github.com/heoblitz/SwiftPreview

Cocoapods

pod 'SwiftPreview'

UnInstallation

  1. Remove dependency
  2. Delete template files
rm -r ~/Library/Developer/Xcode/Templates/File\ Templates/SwiftPreview

License

MIT

GitHub

link
Stars: 7
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

2 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics