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/986e913b67deb5d3b0f93a85c877ea3e to your computer and use it in GitHub Desktop.
Save BetterProgramming/986e913b67deb5d3b0f93a85c877ea3e to your computer and use it in GitHub Desktop.
extension HorizontalAlignment {
private enum TheHorizontalAlignment : AlignmentID {
static func defaultValue(in d: ViewDimensions) -> CGFloat {
return d[HorizontalAlignment.center]
}
}
static let theHorizontalAlignment = HorizontalAlignment(TheHorizontalAlignment.self)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment