Skip to content

Commit

Permalink
Let's dance
Browse files Browse the repository at this point in the history
  • Loading branch information
luosheng committed Nov 16, 2023
1 parent 8c2a0d4 commit 98f777f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ItDepartment.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.pop-tap.ItDepartment";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -406,6 +407,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.pop-tap.ItDepartment";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -432,6 +434,7 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.pop-tap.ItDepartment.FinderExtension";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -459,6 +462,7 @@
"@executable_path/../Frameworks",
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 13.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = "com.pop-tap.ItDepartment.FinderExtension";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
29 changes: 24 additions & 5 deletions ItDepartment/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,35 @@
import SwiftUI

struct ContentView: View {
@State private var animating = false

private var logo: some View {
Image(systemName: "arrow.triangle.2.circlepath")
.font(.system(size: 100))
.imageScale(.large)
.foregroundStyle(.tint)
.tint(.indigo)
}

var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
VStack(spacing: 40) {
if #available(macOS 14, *) {
logo
.symbolEffect(.pulse, options: .repeat(Int.max), value: animating)
} else {
logo
}
Text("Hello, IT")
.font(.largeTitle)
.bold()
}
.frame(width: 300, height: 300)
.padding()
.task {
setupScript()
withAnimation {
animating = true
}
}
}

Expand Down

0 comments on commit 98f777f

Please sign in to comment.