Skip to content

Commit 289e70a

Browse files
authored
Update README.md
1 parent 3652e1e commit 289e70a

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

+5-9
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public class Hello
108108
- Ensure the `AssemblyPath` matches the path where your dll was built.
109109
- Note that you can enter the path relative to the working directory like in the config example above.
110110
- Run the generator: `beyondnetgen Config.json`.
111-
- On a Mac Studio M2 Ultra, this takes a little more than a minute while on an 8-Core Intel Xeon iMac Pro, it takes around 3 minutes. So it might be worth getting some coffee depending on your hardware.
111+
- On a Mac Studio M2 Ultra, this takes a little more than a minute while on an 8-Core Intel Xeon iMac Pro, it takes around 3 minutes. So it might be worth getting some coffee depending on your hardware. (TODO: Outdated info, as now with parallel building support the times are way better)
112112
- The individual code generation and builds steps are shown in the terminal.
113113
- The last printed line should include the path where the build output has been written to (ie. `Build Output has been written to "/Path/To/BeyondDemo/bin/Release/net8.0/publish"`).
114114
- Check the contents of the build output path: `ls bin/Release/net8.0/publish`
@@ -154,14 +154,10 @@ struct ContentView: View {
154154
let nameDN = name.dotNETString()
155155

156156
// Create an instance of the .NET class "Hello"
157-
guard let hello = try BeyondDemo.Hello(nameDN) else {
158-
fatalError("BeyondDemo.Hello ctor returned nil")
159-
}
157+
let hello = try BeyondDemo.Hello(nameDN)
160158

161159
// Get a .NET System.String containing the greeting
162-
guard let theGreetingDN = try hello.getGreeting() else {
163-
fatalError("BeyondDemo.Hello.GetGreeting returned nil")
164-
}
160+
let theGreetingDN = try hello.getGreeting()
165161

166162
// Convert the .NET System.String to a Swift String
167163
let theGreeting = theGreetingDN.string()
@@ -174,8 +170,8 @@ struct ContentView: View {
174170
}
175171
}
176172

177-
struct ContentView_Previews: PreviewProvider {
178-
static var previews: some View { ContentView() }
173+
#Preview {
174+
ContentView()
179175
}
180176
```
181177

0 commit comments

Comments
 (0)