The Composable Architecture (省略すると TCA) は、コンポジション、テスト、開発者にとっての使いやすさを考慮し、一貫性のある理解しやすい方法でアプリケーションを構築するためのライブラリです。SwiftUI、UIKit などで使用することができ、Apple のどのプラットフォーム (iOS, macOS, tvOS, watchOS) でも使用
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
-- ref | |
-- - https://github.com/wojteklu/xcode-open-on-github | |
-- - http://tonbi.jp/AppleScript/Tips/Scripting/Debug.html | |
-- - https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/CallCommandLineUtilities.html | |
on run {input, parameters} | |
tell application "Xcode-14.0.0" | |
set activeDocument to document 1 whose name ends with (word -1 of (get name of window 1)) | |
set activeDocumentPath to path of activeDocument | |
set currentLines to selected paragraph range of activeDocument | |
set startLine to get item 1 of currentLines |
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 | |
struct ContentView: View { | |
@State private var query = "" | |
var body: some View { | |
TextField( | |
"Input text", | |
text: $query | |
) |