Skip to main content
Version: Next

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

  1. Copy the DividerView component folder into your Xcode project.

  2. 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()
}
}