MCPcopy Create free account
hub / github.com/NativeScript/template-macos-solid / getSolidLogo

Function getSolidLogo

src/pages/common.ts:1–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export function getSolidLogo() {
2 if (
3 NSBundle.mainBundle?.objectForInfoDictionaryKey("NativeScriptApplication")
4 ) {
5 const logo = NSBundle.mainBundle.pathForResourceOfType("solid", "png");
6 return logo;
7 } else {
8 return import.meta.resolve("../assets/solid.png");
9 }
10}

Callers 1

ExamplesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected