IterateSDK/Helpers/URL.swift
//
// URL.swift
//
//
// Created by Matthew Bischoff on 3/13/23.
// Copyright © 2020 Pickaxe LLC. (DBA Iterate). All rights reserved.
//
import Foundation
public extension URL {
/// Returns `true` if the receiver contains the Iterate preview parameter.
var isIteratePreviewURL: Bool {
return URLComponents(url: self, resolvingAgainstBaseURL: false)?.queryItems?.contains { $0.name == Iterate.PreviewParameter } ?? false
}
}