install the following
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
git config --global user.name "Your Name Here"
// | |
// DividedStack.swift | |
// based on: https://github.com/aramayyes/Popovers/blob/54728a9ca199ffbffe444d5b04a9354f6a02da7c/Sources/Templates/Views.swift#L14 | |
// | |
// Created by Stef Kors on 19/12/2024. | |
// | |
import SwiftUI |
// | |
// ContentView.swift | |
// 324 Messenger | |
// | |
// Created by Stef Kors on 29/03/2024. | |
// | |
import SwiftUI | |
import SwiftData |
// | |
// KeyAwareView.swift | |
// | |
// Created by Stef Kors on 04/09/2023. | |
// | |
// source: https://onmyway133.com/posts/how-to-handle-keydown-in-swiftui-for-macos/ | |
// source: https://github.com/sindresorhus/KeyboardShortcuts/blob/main/Sources/KeyboardShortcuts/Key.swift | |
import SwiftUI | |
import Carbon.HIToolbox |
// | |
// ContentView.swift | |
// OnKeyPressIssue | |
// | |
// Created by Stef Kors on 04/09/2023. | |
// | |
import SwiftUI | |
struct ChildView: View { |
// | |
// LazyContentWindow.swift | |
// Commitment | |
// | |
// Created by Stef Kors on 16/03/2023. | |
// | |
import SwiftUI | |
struct LazyLoadedView: View { |
export type BaseCountry = { | |
// the ISO 3166-1 code for the country | |
code: string | |
// the name of the country (in english) | |
name: string | |
// the raw emoji for the country's flag (can be multiple codepoints) | |
emoji: string | |
// the international dialing code for the country (without the `+` prefix or escape codes) | |
dial_country_code: string | |
// the regions codes, if any |
let array = ["๐", "๐", "๐", "๐", "๐", "๐ ", "๐", "๐คฃ", "๐ฅฒ", "๐ฅน", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐ฅฐ", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐คช", "๐คจ", "๐ง", "๐ค", "๐", "๐ฅธ", "๐คฉ", "๐ฅณ", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "โน๏ธ", "๐ฃ", "๐", "๐ซ", "๐ฉ", "๐ฅบ", "๐ข", "๐ญ", "๐คฏ", "๐ฅถ", "๐ฑ", "๐จ", "๐ฐ", "๐ฅ", "๐", "๐ซฃ", "๐ค", "๐ซก", "๐ค", "๐ซข", "๐คญ", "๐คซ", "๐คฅ", "๐ถ", "๐ถโ๐ซ๏ธ", "๐", "๐", "๐ฌ", "๐ซ ", "๐", "๐ฏ", "๐ฎ", "๐ฒ", "๐ฅฑ", "๐ด", "๐คค", "๐ช", "๐ต", "๐ตโ๐ซ", "๐ซฅ", "๐ค", "๐ฅด", "๐คข", "๐ค", "๐ค ", "๐คก", "๐ฉ", "๐ป", "๐ฝ", "๐พ", "๐ค", "๐", "๐บ", "๐ธ", "๐น", "๐ป", "๐ผ", "๐ฝ", "๐", "๐", "๐ค", "๐", "โ", "๐", "๐", "๐ค", "๐ค", "โ๏ธ", "๐ค", "๐ซฐ", "๐ค", "๐ค", "๐ค", "๐ซต", "๐ซฑ", "๐ซฒ", "๐ซณ", "๐ซด", "๐", "๐", "๐", "๐", "๐", "โ๏ธ", "๐", "๐", "โ", "๐", "๐ค", "๐ค", "๐", "๐ซถ", "๐", "๐", "๐คฒ", "๐ค", "๐", "โ๏ธ", "๐ ", "๐คณ", "๐ช", "๐ฆพ", "๐ฆต", "๐ฆฟ", "๐ฆถ", "๐ฃ", "๐", "๐ฆป", "๐", "๐ซ", "๐ซ", "๐ง ", "๐ฆท", "๐ฆด", "๐", "๐", "๐ถ", "๐ง", "๐ง", "๐ฆ", "๐ฉ", "๐ง", "๐จ", "๐ฉโ๐ฆฑ", "๐งโ๐ฆฑ", "๐จโ๐ฆฑ", "๐ฉโ๐ฆฐ", "๐งโ๐ฆฐ", "๐จโ๐ฆฐ", "๐ฑโโ๏ธ", "๐ฑ", "๐ฑโโ๏ธ", "๐ฉโ๐ฆณ", "๐งโ๐ฆณ", "๐จโ๐ฆณ", "๐ฉโ๐ฆฒ", "๐งโ๐ฆฒ", "๐จโ๐ฆฒ", "๐งโโ๏ธ", "๐ง", "๐งโโ๏ธ", "๐ต", "๐ง", "๐ด", "๐ฒ", "๐ณโโ๏ธ", "๐ณ", "๐ณโโ๏ธ", "๐ง", "๐ฎโโ๏ธ", "๐ฎ |
struct DraggablePita: View { | |
var body: some View { | |
Image(uiImage: UIImage(named: "pita.png")!) | |
.draggable() // Add the new, custom modifier to make this draggable | |
} | |
} | |
// Handle dragging | |
struct DraggableView: ViewModifier { | |
@State var offset = CGPoint(x: 0, y: 0) |
_ _ _ _ | |
| | | | ___ | || | ___ | |
| |_| | / _ \| || | / _ \ | |
| _ || __/| || || (_) | | |
|_| |_| \___||_||_| \___/ |
install the following
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
git config --global user.name "Your Name Here"