Skip to content
/ rplc Public

Quicly calculate relative layout between a view and it's subviews for interface builder.

Notifications You must be signed in to change notification settings

Zaapp-Inc/rplc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rplc

Calculate the {Multiplier} value for relative constraints in Interface Builder.

This program assumes you have included the following constraints from the Subview to the Superview:

Center Horizontally

Center Vertically

Equal Widths

Equal Heights

Usage:

Quick Calculation: 
  rplc [SuperView Width] [SuperView Height] [View X] [View Y] [View Width] [View Height] 

Multiple Calculations: 
rplc [SuperView Width] [SuperView Height] 
  then:
  [View X] [View Y] [View Width] [View Height] or Press Enter to Exit

iRPLC

The same calculations but on iPhone! Enter all the numbers and you'll see the calculation buttons with Values on them. Click each button to copy to your clipboard, and then use continuity to paste it to the appropriate constraint on your Mac in Xcode.

About

Quicly calculate relative layout between a view and it's subviews for interface builder.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages