send link to app

Guard


软件开发工具
开发 Kyle Knez
自由

Guard against force unwrapping optionals in Swift with this small helpful Xcode Extension. It provides a powerful yet simple command that will help you write faster and safer code. Call guard to create a guard statement or to remove any forced unwrapped optionals in the current selection of lines and replace them with guarded properties. Also replaces colors and images to their literal equivalents. It has three commands, throw, fatal, and empty, and they only differ in how the created guard statement handles the else condition. Simple, lightweight and hopefully helpful in writing safer cleaner code.