import SwiftUI
struct AccessiblePostCard: View {
let post: Post
@State private var isLiked = false
import SwiftUI
import MapKit
import CoreLocation
struct Location: Identifiable {
let id = UUID()
final class PinnedSessionDelegate: NSObject, URLSessionDelegate {
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
guard let serverTrust = challenge.protectionSpace.serverTrust else {
completionHandler(.cancelAuthenticationChallenge, nil)
return
}
import Foundation
enum APIError: Error, LocalizedError {
case invalidURL
case invalidResponse
case statusCode(Int)