Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created July 14, 2020 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BetterProgramming/3d47fbc43738ec1b65f1b819c684d062 to your computer and use it in GitHub Desktop.
Save BetterProgramming/3d47fbc43738ec1b65f1b819c684d062 to your computer and use it in GitHub Desktop.
extension VerticalAlignment {
private enum TheVerticalAlignment : AlignmentID {
static func defaultValue(in d: ViewDimensions) -> CGFloat {
return d[VerticalAlignment.center]
}
}
static let theVerticalAlignment = VerticalAlignment(TheVerticalAlignment.self)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment