This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
extension UIView { | |
// ---------------------------------------------------------------------- | |
// Make it cleaner to add all your elements as subviews in a single line. | |
// Example: | |
// view.addSubviews([coverImage, titleLabel, followButton, …]) | |
func addSubviews(_ views: [UIView]) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// =========================================================================== | |
// Starting point: | |
// - Sketch file with many shapes (icons). | |
// - Ideally each icon category is its own page named appropriately. | |
// How to use it: | |
// - Open Sketch file and press Ctrl + Shift + K. | |
// - Paste script and click "Run". |
NewerOlder