Skip to content

Instantly share code, notes, and snippets.

View technocidal's full-sized avatar
🌍
Working remote

Johannes Ebeling technocidal

🌍
Working remote
View GitHub Profile

Keybase proof

I hereby claim:

  • I am technocidal on github.
  • I am technocidal (https://keybase.io/technocidal) on keybase.
  • I have a public key ASB3MtEzBUbHE9vJfoHMlrytX0WEHvCOX0TL2s-QbDAZcQo

To claim this, I am signing this object:

@technocidal
technocidal / Selection.swift
Created February 7, 2024 12:07
Optional selection
//: A UIKit based Playground for presenting user interface
import UIKit
import SwiftUI
import PlaygroundSupport
struct ContentView: View {
@State var selected: Int? = 1
import SwiftUI
import Combine
import PlaygroundSupport
class SomeOtherObject: ObservableObject {
var cancellable: AnyCancellable? = nil
@Published var someValue = ""
init() {
self.cancellable = Timer.publish(every: 1, on: RunLoop.main, in: .default)