Skip to content

Instantly share code, notes, and snippets.

@dmytro-anokhin
Created October 8, 2017 10:49
Show Gist options
  • Save dmytro-anokhin/0f9f85fea04036742df25fce475fbe21 to your computer and use it in GitHub Desktop.
Save dmytro-anokhin/0f9f85fea04036742df25fce475fbe21 to your computer and use it in GitHub Desktop.
/// Width of the left view in side-by-side display mode
private var leftColumnWidth: CGFloat!
/// Suggests width of the left column in side-by-side display mode
private func suggestLeftColumnWidth(for availableSize: CGSize) -> CGFloat {
return availableSize.width > availableSize.height ? 440.0 : 320.0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment