This is an iOS component to assist in aligning Views by creating lines similar to image editing programs such as Photoshop and Sketch.
- Add AlignmentIndicatorViews.swift to your project.
- Call AlignmentIndicatorViews shared instance.
AlignmentIndicatorViews.shared.identifyViews(currentView: viewDrag, parentView: self.view, otherViews: self.draggableViews)Use the width property to set the width of the lines.
private var lineWidth: CGFloat = 0.6Use the color property to set the color of the lines.
private var lineColor = UIColor.redBefore inserting new lines it is necessary to clean existing ones.
AlignmentIndicatorViews.shared.clearLayersLines()Gabriel Braga | http://www.gabrielbraga.com
