-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
figma-bot
committed
Jul 23, 2024
1 parent
9911b18
commit 444f438
Showing
51 changed files
with
3,119 additions
and
215 deletions.
There are no files selected for viewing
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
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
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
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
33 changes: 33 additions & 0 deletions
33
cli/src/__test__/e2e_connect_command/swift_package/Package.resolved
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"originHash" : "6a0c41426781b92fbb7d0d41c10518f801bc269242a05db722f964e3783da238", | ||
"pins" : [ | ||
{ | ||
"identity" : "swift-argument-parser", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-argument-parser", | ||
"state" : { | ||
"revision" : "0fbc8848e389af3bb55c182bc19ca9d5dc2f255b", | ||
"version" : "1.4.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-syntax", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/apple/swift-syntax", | ||
"state" : { | ||
"revision" : "64889f0c732f210a935a0ad7cda38f77f876262d", | ||
"version" : "509.1.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "swiftformat", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/nicklockwood/SwiftFormat", | ||
"state" : { | ||
"revision" : "dd989a46d0c6f15c016484bab8afe5e7a67a4022", | ||
"version" : "0.54.0" | ||
} | ||
} | ||
], | ||
"version" : 3 | ||
} |
20 changes: 20 additions & 0 deletions
20
cli/src/__test__/e2e_connect_command/swift_package/Package.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// swift-tools-version: 5.10 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "SwiftPackageCodeConnectE2ETest", | ||
products: [ | ||
// Products define the executables and libraries a package produces, making them visible to other packages. | ||
.library( | ||
name: "CodeConnectE2ETest", | ||
targets: ["CodeConnectE2ETest"]), | ||
], | ||
dependencies: [.package(path: "../../../../../../figmadoc")], | ||
targets: [ | ||
// Targets are the basic building blocks of a package, defining a module or a test suite. | ||
// Targets can depend on other targets in this package and products from dependencies. | ||
.target(name: "CodeConnectE2ETest"), | ||
] | ||
) |
20 changes: 20 additions & 0 deletions
20
.../__test__/e2e_connect_command/swift_package/Sources/CodeConnectE2ETest/Toggle+Figma.swift
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Figma | ||
import SwiftUI | ||
|
||
struct Toggle_doc: FigmaConnect { | ||
let component = Toggle<AnyView>.self; | ||
|
||
let figmaNodeUrl = "https://www.figma.com/file/test/test?node-id=12-345" | ||
|
||
@State private var isOn = true | ||
var body: some View { | ||
Toggle(isOn: $isOn) { | ||
// Add a label here | ||
} | ||
} | ||
|
||
} | ||
|
||
#Preview { | ||
Toggle_doc() | ||
} |
Oops, something went wrong.