- Finder
- View -> Show all the bars
- Preferences -> play around
- Touch bar
- Keyboard -> Touch Bar -> persistent
- Battery -> show percentage
- xCode & command line tools
- Homebrew
- NVM & Node 16
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 | |
extension View { | |
func eraseToAnyView() -> AnyView { | |
AnyView(self) | |
} | |
} | |
struct SizePreferenceKey: PreferenceKey { | |
typealias Value = CGSize |
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 PlaygroundSupport | |
extension Double { | |
func toRadians() -> Double { | |
return self * Double.pi / 180 | |
} | |
func toCGFloat() -> CGFloat { | |
return CGFloat(self) |
I hereby claim:
- I am frankfka on github.
- I am gpvalidator (https://keybase.io/gpvalidator) on keybase.
- I have a public key ASDyZ-vlurO2MaRi5rQriZ4pQZF55pkQRajvOxHGY-bkdwo
To claim this, I am signing this object:
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 PlaygroundSupport | |
struct MultiSegmentPickerViewModel { | |
typealias Label = String | |
typealias Selection = Binding<Int> | |
typealias PickerDisplayValues = [String] | |
let segments: [(Label, Selection, PickerDisplayValues)] | |
} |