OCDividerView: ui component
The OCDividerView
component is a reusable OCDividerView that allows you to create customizable DividerView by setting divider orientation.
Features
- Create DividerView.
- Customize divider orientation horizontal or vertical.
Installation
-
Copy the
DividerView
component folder into your Xcode project. -
Use the
OCDividerView
view in your SwiftUI code:
import SwiftUI
struct ContentView: View {
var body: some View {
VStack(alignment: .center) {
OCDividerView(orientation: .vertical)
.frame(height: 200)
}
.padding()
}
}