This file contains hidden or 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 animate: Bool = false | |
@State private var color: Color = .myGray | |
@State private var pattern: [[Int]] = [ | |
[0, 1, 2, 3, 4, 5, 6, 7, 8,], | |
[9, 10, 11, 12, 13, 14, 15, 16, 17,], | |
[18, 19, 20, 21, 22, 23, 24, 24, 26,], |
This file contains hidden or 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 UIKit | |
import SwiftUI | |
struct Fireworks: UIViewControllerRepresentable { | |
// 2. | |
func makeUIViewController(context: Context) -> FireworkViewController { | |
return FireworkViewController() | |
} |
This file contains hidden or 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
// Created by Inncoder. | |
// Copyright © 2020 Inncoder AS. All rights reserved. | |
// | |
import SwiftUI | |
struct CircleSpinLoading: View { | |
@State private var offset: CGFloat = 0 | |
@State private var rotation: Double = 0 |
This file contains hidden or 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
// Created by Inncoder. | |
// Copyright © 2020 Inncoder AS. All rights reserved. | |
import SwiftUI | |
struct ShowPass: View { | |
@State private var password = "" | |
@State private var showPass = false | |
This file contains hidden or 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
struct ParticleEmitter { | |
static var rectangle: ParticlesEmitter { | |
get { | |
let base = EmitterCell() | |
.content(.circle(10)) | |
.birthRate(20) | |
.lifetime(14) | |
.velocity(CGFloat(Int.random(in: 50...100))) | |
.velocityRange(0) | |
.emissionLongitude(10) |
This file contains hidden or 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
// Created by Inncoder. | |
// Copyright © 2020 Inncoder AS. All rights reserved. | |
// | |
import SwiftUI | |
struct NeumorphicToggle: View { | |
@State private var toggled = false | |
@State private var animating = false |
This file contains hidden or 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
// | |
// Toggle.swift | |
// Animations | |
// | |
// Created by Inncoder on 18/11/2020. | |
// Copyright © 2020 Inncoder AS. All rights reserved. | |
// | |
import SwiftUI |
This file contains hidden or 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
// Created by Inncoder on 15/11/2020. | |
// Copyright © 2020 Inncoder AS. All rights reserved. | |
// | |
import SwiftUI | |
struct ShuffleLoading: View { | |
@State private var offset: [CGFloat] = [0, 0, 0] | |
@State private var rotation: [Double] = [0, 0, 0] |
This file contains hidden or 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
struct Hourglass: View { | |
let hourglassSize: CGFloat | |
let glassColor: Color | |
let sandColor: Color | |
@State private var topOffset: CGFloat = 0 | |
@State private var middleOffset: CGFloat = 0 | |
@State private var bottomOffset: CGFloat = 0 | |
NewerOlder