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
-
Copy the
OCPill
component folder into your Xcode project. -
Use the
OCPill
view in your SwiftUI code:
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
OCPill(title: "Profile added", pillColor: .red)
}
}
}