Enabling Extensions now possible in SwiftUI

This commit is contained in:
Stuart Breckenridge
2022-12-19 12:14:56 +08:00
parent dbef68c8f8
commit ef6b90d594
10 changed files with 299 additions and 268 deletions

View File

@@ -0,0 +1,30 @@
//
// ExtensionSectionHeader.swift
// NetNewsWire-iOS
//
// Created by Stuart Breckenridge on 19/12/2022.
// Copyright © 2022 Ranchero Software. All rights reserved.
//
import SwiftUI
import Account
struct ExtensionSectionHeader: View {
var extensionPoint: ExtensionPoint.Type
var body: some View {
Section(header: headerImage) {}
}
var headerImage: some View {
HStack {
Spacer()
Image(uiImage: extensionPoint.image)
.resizable()
.aspectRatio(contentMode: .fit)
.frame(width: 48, height: 48)
Spacer()
}
}
}