In iTerm2, in the menu bar go to Scripts > Manage > New Python Script
Select Basic. Select Long-Running Daemon
Give the script a decent name (I chose auto_dark_mode.py
)
Save and open the script in your editor of choice.
struct ContentView: View { | |
@State var scrollOffset: CGPoint = .zero | |
var body: some View { | |
ObservableScrollView { | |
Text("Hello, world!") | |
.foregroundColor(self.scrollOffset.y == 0 ? .blue : .red) | |
} | |
.onScroll { self.scrollOffset = $0 } |
// | |
// TilingTabView.swift | |
// | |
// | |
// Created by Dan Tavares on 12/07/2020. | |
// | |
import SwiftUI | |
class State: ObservableObject { |
// | |
// TagItem.swift | |
// ChalkUp | |
// | |
// Created by kane buckthorpe on 13/03/2021. | |
// | |
import Foundation | |
class TagItem: ObservableObject { |
// | |
// SwiftUI+HTML.swift | |
// | |
// Created by Felix Mau on 28.05.21. | |
// Copyright © 2021 Felix Mau. All rights reserved. | |
// | |
import SwiftUI | |
@available(iOS 15.0, *) |