- Create 10GB FreeBSD image using QEMU.
- Run the VM using xhyve.
- Mount host directory.
- Resize the image.
- OSX
- Homebrew
// Copyright (C) 2025 Gwendal Roué | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a | |
// copy of this software and associated documentation files (the | |
// "Software"), to deal in the Software without restriction, including | |
// without limitation the rights to use, copy, modify, merge, publish, | |
// distribute, sublicense, and/or sell copies of the Software, and to permit | |
// persons to whom the Software is furnished to do so, subject to the | |
// following conditions: | |
// |
@propertyWrapper | |
struct Proxy<EnclosingType, Value> { | |
typealias ValueKeyPath = ReferenceWritableKeyPath<EnclosingType, Value> | |
typealias SelfKeyPath = ReferenceWritableKeyPath<EnclosingType, Self> | |
static subscript( | |
_enclosingInstance instance: EnclosingType, | |
wrapped wrappedKeyPath: ValueKeyPath, | |
storage storageKeyPath: SelfKeyPath | |
) -> Value { |
import SwiftUI | |
struct MyValue: _ViewTraitKey { | |
static var defaultValue: Int = 0 | |
} | |
extension View { | |
func myValue(_ value: Int) -> some View { | |
_trait(MyValue.self, value) | |
} |