You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
695 B
32 lines
695 B
//
|
|
// LibraryDetail.swift
|
|
// MySwiftUi
|
|
//
|
|
// Created by etudiant on 11/05/2023.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct LibraryDetail: View {
|
|
let library: Library
|
|
|
|
var body: some View {
|
|
VStack {
|
|
Image(library.thumbnail)
|
|
.resizable()
|
|
.scaledToFit()
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
Text(library.name)
|
|
.font(.title)
|
|
.fontWeight(.bold)
|
|
Text(library.maj)
|
|
.font(.headline)
|
|
}
|
|
.padding()
|
|
|
|
Spacer()
|
|
}
|
|
.navigationBarTitle(Text(library.name), displayMode: .inline)
|
|
}
|
|
}
|