This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ProgressViews.swift | |
// wwdc-2020 | |
// | |
// Created by Patrick Gatewood on 6/30/20. | |
import SwiftUI | |
import Combine | |
// MARK: - Type Erasure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ProgressViews.swift | |
// wwdc-2020 | |
// | |
// Created by Patrick Gatewood on 6/30/20. | |
// | |
// An attempt at creating my own type erasure similar to `AnyView`. Not recommended | |
// unless we figure out a way to restore `AnyProgressviewStyle`'s wrapped view's type. | |
// See:https://forums.swift.org/t/why-some-swiftui-views-have-body-swift-never/27372/8 |