Skip to content

Instantly share code, notes, and snippets.

View amosgyamfi's full-sized avatar

Amos Gyamfi amosgyamfi

View GitHub Profile
//
// ContentView.swift
// popup
//
// Created by Amos Gyamfi on 1.6.2020.
// Copyright © 2020 Amos Gyamfi. All rights reserved.
//
import SwiftUI
@amosgyamfi
amosgyamfi / darkmode.swift
Created June 15, 2020 14:34
Dark Mode: Using Default Colors and System Colors
//
// ContentView.swift
// Dark Mode
//
// Created by Amos Gyamfi on 13.6.2020.
// Copyright © 2020 Amos Gyamfi. All rights reserved.
//
import SwiftUI
@amosgyamfi
amosgyamfi / syncing_loader.swift
Created June 17, 2020 14:14
This is an example SwiftUI animation prototyping using xCode Playground on iPad
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
@State private var isSpinning = false
@State private var isShowing = false
@State private var isDisplaying = false
@amosgyamfi
amosgyamfi / audio_tweet.swift
Created June 18, 2020 03:29
Audio Tweet Playing
//
// ContentView.swift
// audio_tweet
//
// Created by Amos Gyamfi on 18.6.2020.
// Copyright © 2020 Amos Gyamfi. All rights reserved.
//
import SwiftUI
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
@State private var played = false
@State private var yScaleIndicator1 = false
@State private var yScaleIndicator2 = false
@State private var yScaleIndicator3 = false
//
// ContentView.swift
// touch_id
//
// Created by Amos Gyamfi on 19.6.2020.
// Copyright © 2020 Amos Gyamfi. All rights reserved.
//
import SwiftUI
@amosgyamfi
amosgyamfi / loader.swift
Created July 17, 2020 12:42
A loader with variable width
//
// ContentView.swift
// content_loading
//
// Created by Amos Gyamfi on 12.7.2020.
//
import SwiftUI
struct ContentView: View {
//
// ContentView.swift
// Text Loader
//
// Created by Amos Gyamfi on 12.7.2020.
//
import SwiftUI
struct ContentView: View {
//
// ContentView.swift
// breath
//
// Created by Amos Gyamfi on 17.7.2020.
//
import SwiftUI
struct ContentView: View {
//
// ContentView.swift
// iPhone Alarm Screen
//
// Created by Amos Gyamfi on 21.7.2020.
//
import SwiftUI
struct ContentView: View {