brew install rustup
rustup-init
# new shell for env (or source .cargo/env), then:
rustup target add wasm32-wasi
This file contains 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 | |
import Charts | |
// Required entitlement: | |
// <key>com.apple.security.network.client</key><true/> | |
enum Signal: Int { case red, yellow, green } | |
struct Value { | |
let date : Date |
This file contains 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
// | |
// ZzCompression.swift | |
// Core/S | |
// | |
// Created by Helge Heß on 25.10.19. | |
// | |
import Compression | |
public extension Data { |
This file contains 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
▿ SwiftUI.Binding<Swift.Bool> | |
▿ transaction: SwiftUI.Transaction | |
▿ plist: [] | |
- elements: nil | |
▿ location: SwiftUI.LocationBox<SwiftUI.Binding<Swift.Bool>.(unknown context at $1c460b9d4).ScopedLocation> #0 | |
- super: SwiftUI.AnyLocation<Swift.Bool> | |
- super: SwiftUI.AnyLocationBase | |
▿ location: SwiftUI.Binding<Swift.Bool>.(unknown context at $1c460b9d4).ScopedLocation | |
▿ base: SwiftUI.LocationBox<SwiftUI.(unknown context at $1c3c342f4).ObjectLocation<TestGroup.Option, Swift.Bool>> #1 | |
- super: SwiftUI.AnyLocation<Swift.Bool> |
This file contains 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
💽 =============== | |
💽 CoreData: 1 Simple Objects | |
=============== | |
CoreData: annotation: Connecting to sqlite database file at "/var/mobile/Containers/Data/Application/556D618D-E701-4FCC-A879-D62AB3747F0F/Library/Application Support/CoreUserDB" | |
CoreData: annotation: creating schema. | |
CoreData: sql: pragma page_size=4096 | |
CoreData: sql: pragma auto_vacuum=2 | |
CoreData: sql: BEGIN EXCLUSIVE | |
CoreData: sql: SELECT TBL_NAME FROM SQLITE_MASTER WHERE TBL_NAME = 'Z_METADATA' | |
CoreData: sql: CREATE TABLE ZCOREUSER ( Z_PK INTEGER PRIMARY KEY, Z_ENT INTEGER, Z_OPT INTEGER, ZAGE INTEGER, ZFIRSTNAME VARCHAR, ZSURNAME VARCHAR, ZID BLOB ) |
This file contains 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 Item: Identifiable { | |
let id = UUID() | |
let title = "Hello" | |
} | |
let items = [ | |
Item(), Item(), Item(), Item(), Item(), Item(), Item(), Item(), Item(), Item(), Item(), | |
Item(), Item(), Item(), Item(), Item(), Item(), Item(), |
This file contains 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
/** | |
* An Observable property wrapper that only creates the observable | |
* value once. | |
* | |
* Example: | |
* ```swift | |
* @Observable class Item { | |
* } | |
* | |
* struct MyView: View { |
This file contains 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 | |
@Observable class Tester { | |
init() { print("INIT:", ObjectIdentifier(self)) } | |
deinit { print("DEINIT:", ObjectIdentifier(self)) } | |
} | |
struct ContentView: View { | |
struct Nested: View { |
This file contains 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 | |
import SwiftData | |
@Model final class Address { | |
let street = "Am Geldspeicher 1" | |
var contact : Contact? | |
init() {} | |
} | |
@Model final class Contact { |
This file contains 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 Helge Heß. | |
// Copyright © 2023 ZeeZide GmbH. | |
// | |
import XCTest | |
import UIKit | |
import SwiftData | |
import SwiftUI |
NewerOlder