Skip to content

Commit

Permalink
Add HostPreferenceKey
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Jan 6, 2024
1 parent 4e2a757 commit d5742f0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
// Status: Complete

protocol HostPreferenceKey: PreferenceKey {}

extension HostPreferenceKey {
static var _isReadableByHost: Bool { true }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// HostPreferencesKey.swift
// OpenSwiftUI
//
// Created by Kyle on 2023/1/6.
// Lastest Version: iOS 15.5
// Status: WIP
// ID: 7429200566949B8FB892A77E01A988C8

struct HostPreferencesKey: PreferenceKey {
static var defaultValue: PreferenceList {
PreferenceList()
}

static func reduce(value: inout PreferenceList, nextValue: () -> PreferenceList) {
// TODO:
}

private static var nodeId: UInt32 = .zero
}

0 comments on commit d5742f0

Please sign in to comment.