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
// | |
// GradientBorderButtonStyle.swift | |
// LearningTrail-11112022 | |
// | |
// Created by Matthew Young on 1/2/23. | |
// | |
import SwiftUI | |
import Shimmer // https://github.com/markiv/SwiftUI-Shimmer |
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
// | |
// SFSymbolDelayStart.swift | |
// VariableSFSymbolAnimation | |
// | |
// Created by Matthew Young on 12/27/22. | |
// | |
import SwiftUI | |
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
import SwiftUI | |
import Algorithms | |
enum VariableSFSymbol { | |
static func columnsOfSymbols(columnCount: Int) -> [[String]] { | |
Self.allVariableSFSymbolNames.chunks(ofCount: columnCount).map({ Array($0) }) | |
} | |
static let allVariableSFSymbolNames = [ | |
"rectangle.and.pencil.and.ellipsis", |
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
// | |
// ColorProvider.swift | |
// VariableSFSymbolAnimation | |
// | |
// Created by Matthew Young on 12/24/22. | |
// | |
import SwiftUI | |
extension BinaryInteger { |
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
import SwiftUI | |
//import Combine | |
struct NumbersOnlyViewModifier: ViewModifier { | |
@Binding var text: String | |
var includeDecimal: Bool | |
func body(content: Content) -> some View { | |
content |
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
import SwiftUI | |
// VVVVVv | |
// the same math is used everywhere | |
enum Elliptical { | |
/// Calculate the cartitian coordinate (x, y) | |
/// - Parameters: | |
/// - angle: at this angle |
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 | |
// CoordinateShapeVsViewFrameOffset | |
// | |
// Created by Matthew Young on 12/26/22. | |
// | |
import SwiftUI | |
// VVVVVv |
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
// | |
// EllipticalOrbitView.swift | |
// ChristmasTreeConclusion | |
// | |
// Created by Matthew Young on 12/27/22. | |
// | |
import SwiftUI | |
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
// | |
// DelayAppearance.swift | |
// VariableSFSymbolAnimation | |
// | |
// Created by Matthew Young on 12/29/22. | |
// | |
// About animation transaction: | |
// https://swiftwithmajid.com/2020/10/07/transactions-in-swiftui/ |
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
// https://sarunw.com/posts/swiftui-circular-progress-bar/ | |
// | |
// CircularProgressView.swift | |
// SwiftUI30WWDC2021 | |
// | |
// Created by Mateo on 5/6/22. | |
// | |