Created
July 14, 2020 17:36
-
-
Save BetterProgramming/986e913b67deb5d3b0f93a85c877ea3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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