SkillAgentSearch skills...

SwiftPreview

XCode Preview template for UIkit based project.

Install / Use

/learn @heoblitz/SwiftPreview
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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 <a id="Download_Xcode_Template"></a>

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 <a id="Installation"></a>

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

View on GitHub
GitHub Stars15
CategoryDevelopment
Updated1y ago
Forks2

Languages

Swift

Security Score

75/100

Audited on Oct 29, 2024

No findings