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
// | |
// ContentView.swift | |
// TestTest | |
// | |
// Created by Sandro Pennisi on 16.05.22. | |
// | |
import SwiftUI | |
struct WhateverModifier: ViewModifier { |
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
//To configure the contents of the HUD | |
struct HUDConfig { | |
var text: String | |
var icon: Image | |
var autohide = true | |
static func success(_ s: String) -> HUDConfig { | |
return HUDConfig(text: s, icon: Image(systemName: "checkmark.circle.fill")) | |
} | |
} |