Skip to main content
Version: Next

OCOVSAppointmentCard: UI Component

The OCOVSAppointmentCard is a customizable card view for displaying ovs appointment card details. It can include a image, title, appoitment time, appoitment date and photo upload option.

Features

  • User can pass the desired details to show appointmentDetails:
  • Appointment details it includes image, title speciality, appoitment time , date and photo upload option.

Installation

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

  2. Use the OCOVSAppointmentCard view in your SwiftUI code:

Parameters:

  • appointmentDetails : Image, title, appoitment time, appoitment date and photo upload option
  • style : The appearance of the card can be customized using different background and text color
import SwiftUI

struct ContentView: View {

var body: some View {
VStack {
OCOVSAppointmentCard(appointmentDetails:
OVSAppointmentCardDetail(image: .url(path: "https://dummyimage.com/640x360/fff/aaa",
placeholder: "ChallengeCardPlaceholder"),
title: "Dr. med. Wolfgang Guest",
speciality: "Neurosurgeons",
appointmentTime: "02:30: 00",
appointmentDate: "13/11/2011",
photoUpload: "Photo Upload"))
)
}
.padding(16)
}
}