Open bibin-jaimon opened 1 month ago
@bibin-jaimon we can add a property to useMaxFrame modifier to customize the usage of alignment propery by modifying the extension of the view
extension View {
@ViewBuilder
func useMaxFrame(alignment: Alignment = .top) -> some View {
self.modifier(MaxFrameModifier(alignment: alignment))
}
}
usages
VStack {
Text("Hello useMaxFrame")
}
.useMaxFrame()
VStack {
Text("Hello useMaxFrame")
}
.useMaxFrame(alignment: .bottom)
useMaxFrame()
Usage of useMaxFrame()