Skip to main content
Version: 12.10.0

OCPill

OCPill is a custom component view built using SwiftUI. The OCPill component is a combination of left icon, right icon, and a title and its state also can be configured. OCPill contains information which is in regard of a status of another component in the screen. OCPill is not clickable.

Features

  • Create Pill view
  • Customisable titles, icons and appearance.
  • Supports accessibility features for improved user experience.

Installation

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

  2. Use the OCPill view in your SwiftUI code:

import SwiftUI

struct ContentView: View {
var body: some View {
VStack {
OCPill(title: "Profile added", pillColor: .red)
}
}
}