Skip to content

Instantly share code, notes, and snippets.

View dankamel's full-sized avatar
🕊️

Daniel dankamel

🕊️
View GitHub Profile
@dankamel
dankamel / BottomSheetDesign.swift
Last active April 15, 2024 15:57
Native iOS 15 Adjustable Bottom Sheet In SwiftUI (half bottom sheet)
import SwiftUI
struct BottomSheetDesign: View {
@State var showSheet: Bool? = nil
var body: some View {
Button(action: { showSheet = true }) {
@dankamel
dankamel / Exchange.swift
Created August 21, 2021 12:57
SwiftUI API Call $CLOUT Exchange Rate
import Foundation
struct Exchange: Decodable, Hashable {
var BuyBitCloutFeeBasisPoints: Int?
var NanosSold: Int?
var SatoshisPerBitCloutExchangeRate: Int?
var USDCentsPerBitCloutExchangeRate: Int?
var USDCentsPerBitCloutReserveExchangeRate: Int?
var USDCentsPerBitcoinExchangeRate: Int?