- Finder
- View -> Show all the bars
- Preferences -> play around
- xCode & command line tools
- Homebrew
- NVM
- Yarn (
npm install -g yarn) & Bun - Python (Pyenv)
- Install virtualenv plugin
This file contains hidden or 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 PlaygroundSupport | |
| struct MultiSegmentPickerViewModel { | |
| typealias Label = String | |
| typealias Selection = Binding<Int> | |
| typealias PickerDisplayValues = [String] | |
| let segments: [(Label, Selection, PickerDisplayValues)] | |
| } |
This file contains hidden or 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 | |
| extension View { | |
| func eraseToAnyView() -> AnyView { | |
| AnyView(self) | |
| } | |
| } | |
| struct SizePreferenceKey: PreferenceKey { | |
| typealias Value = CGSize |
This file contains hidden or 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 PlaygroundSupport | |
| extension Double { | |
| func toRadians() -> Double { | |
| return self * Double.pi / 180 | |
| } | |
| func toCGFloat() -> CGFloat { | |
| return CGFloat(self) |