Created
July 14, 2020 17:36
-
-
Save BetterProgramming/3d47fbc43738ec1b65f1b819c684d062 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 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