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 | |
// GradientCard | |
// | |
// Created by Denise Nepraunig on 26.11.23. | |
// | |
import SwiftUI | |
struct GradientLine: View { |
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 | |
struct ContentView: View { | |
@State private var hoverLocation: CGPoint = .zero | |
@State private var isHovering = false | |
@State var toggleText = false | |
var body: some View { | |
ZStack { | |
Rectangle() |
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 Foundation | |
enum FooEnum { | |
case foo1 | |
case foo2 | |
case foo3 | |
} | |
enum BarEnum { | |
case bar1 |
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 | |
struct ContentView: View { | |
@State private var numberString = "0" | |
private var numberInt: Int { | |
Int(numberString) ?? 0 | |
} | |
private var numberHex: String { |
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 Foundation | |
public struct Stack<Element> { | |
private var storage = [Element]() | |
public init() {} | |
public init(_ elements: [Element]) { | |
storage = elements | |
} |
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
// | |
// BreathAnimation.swift | |
// breathing-animation | |
// | |
// Created by Denise Nepraunig on 17.05.21. | |
// | |
// Code is based on this tutorial: | |
// https://www.youtube.com/watch?v=KUvkJOhpB9A | |
// Thanks Adam :-) |
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
// | |
// ShortCutTrainer.swift | |
// xcode-shortcut-trainer | |
// | |
// Created by Denise Nepraunig on 04.04.21. | |
// | |
import SwiftUI | |
struct ShortCutTrainer: View { |
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 | |
struct DotIndicator: View { | |
@State private var isLoading = false | |
var body: some View { | |
HStack(spacing: 10) { | |
ForEach(0...4, id: \.self) { index in | |
Circle() | |
.frame(width: 20, height: 20) |
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 Foundation | |
import Combine | |
var storage = Set<AnyCancellable>() | |
struct Cat: Codable { | |
let name: String | |
let age: Int | |
} |
NewerOlder