Skip to content

Commit f84f25e

Browse files
authored
Share ContentView in targets (#635)
1 parent 9e33825 commit f84f25e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Example/HostingExample/ViewController.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,3 @@ class ViewController: NSViewController {
6363
}
6464
}
6565
#endif
66-
67-
struct ContentView: View {
68-
var body: some View {
69-
RepeatAnimationExample()
70-
}
71-
}

Example/Example/ContentView.swift renamed to Example/SharedExample/ContentView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ContentView.swift
3-
// Example
3+
// SharedExample
44
//
55
// Created by Kyle on 2023/11/9.
66
//
@@ -13,6 +13,6 @@ import SwiftUI
1313

1414
struct ContentView: View {
1515
var body: some View {
16-
EmptyView()
16+
RepeatAnimationExample()
1717
}
1818
}

0 commit comments

Comments
 (0)