mirror of
https://github.com/VernissageApp/Vernissage.git
synced 2024-12-29 02:10:44 +01:00
34 lines
656 B
Swift
34 lines
656 B
Swift
//
|
|
// https://mczachurski.dev
|
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
|
// Licensed under the MIT License.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct BottomRight<Content: View>: View {
|
|
let content: Content
|
|
|
|
init(@ViewBuilder content: () -> Content) {
|
|
self.content = content()
|
|
}
|
|
|
|
var body: some View {
|
|
VStack(alignment:.trailing) {
|
|
Spacer()
|
|
HStack {
|
|
Spacer()
|
|
content
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
struct BottomRight_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
BottomRight {
|
|
Text("1/2")
|
|
}
|
|
}
|
|
}
|