diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/BeyondNETSampleSwiftMacOSApp.xcodeproj/project.pbxproj b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/BeyondNETSampleSwiftMacOSApp.xcodeproj/project.pbxproj new file mode 100644 index 00000000..c7e3d89d --- /dev/null +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/BeyondNETSampleSwiftMacOSApp.xcodeproj/project.pbxproj @@ -0,0 +1,353 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + E71E423C2A603D830075FE5F /* BeyondNETSampleSwiftMacOSAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = E71E423B2A603D830075FE5F /* BeyondNETSampleSwiftMacOSAppApp.swift */; }; + E71E423E2A603D830075FE5F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E71E423D2A603D830075FE5F /* ContentView.swift */; }; + E71E42402A603D840075FE5F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E71E423F2A603D840075FE5F /* Assets.xcassets */; }; + E71E424F2A603E0A0075FE5F /* BeyondNETSampleSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E71E424E2A603E0A0075FE5F /* BeyondNETSampleSwift.framework */; }; + E71E42502A603E0A0075FE5F /* BeyondNETSampleSwift.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E71E424E2A603E0A0075FE5F /* BeyondNETSampleSwift.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + E71E42512A603E0A0075FE5F /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + E71E42502A603E0A0075FE5F /* BeyondNETSampleSwift.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + E71E42382A603D830075FE5F /* BeyondNETSampleSwiftMacOSApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BeyondNETSampleSwiftMacOSApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + E71E423B2A603D830075FE5F /* BeyondNETSampleSwiftMacOSAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BeyondNETSampleSwiftMacOSAppApp.swift; sourceTree = ""; }; + E71E423D2A603D830075FE5F /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + E71E423F2A603D840075FE5F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + E71E42442A603D840075FE5F /* BeyondNETSampleSwiftMacOSApp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = BeyondNETSampleSwiftMacOSApp.entitlements; sourceTree = ""; }; + E71E424E2A603E0A0075FE5F /* BeyondNETSampleSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = BeyondNETSampleSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + E71E42522A603E110075FE5F /* libBeyondDotNETSampleNative.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = libBeyondDotNETSampleNative.xcframework; path = "../../Beyond.NET.Sample.Native/bin/Release/net8.0/apple-universal/publish/libBeyondDotNETSampleNative.xcframework"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + E71E42352A603D830075FE5F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + E71E424F2A603E0A0075FE5F /* BeyondNETSampleSwift.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + E71E422F2A603D830075FE5F = { + isa = PBXGroup; + children = ( + E71E423A2A603D830075FE5F /* Source */, + E71E42392A603D830075FE5F /* Products */, + E71E424D2A603E0A0075FE5F /* Frameworks */, + ); + sourceTree = ""; + }; + E71E42392A603D830075FE5F /* Products */ = { + isa = PBXGroup; + children = ( + E71E42382A603D830075FE5F /* BeyondNETSampleSwiftMacOSApp.app */, + ); + name = Products; + sourceTree = ""; + }; + E71E423A2A603D830075FE5F /* Source */ = { + isa = PBXGroup; + children = ( + E71E423D2A603D830075FE5F /* ContentView.swift */, + E71E423B2A603D830075FE5F /* BeyondNETSampleSwiftMacOSAppApp.swift */, + E71E423F2A603D840075FE5F /* Assets.xcassets */, + E71E42442A603D840075FE5F /* BeyondNETSampleSwiftMacOSApp.entitlements */, + ); + path = Source; + sourceTree = ""; + }; + E71E424D2A603E0A0075FE5F /* Frameworks */ = { + isa = PBXGroup; + children = ( + E71E42522A603E110075FE5F /* libBeyondDotNETSampleNative.xcframework */, + E71E424E2A603E0A0075FE5F /* BeyondNETSampleSwift.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + E71E42372A603D830075FE5F /* BeyondNETSampleSwiftMacOSApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = E71E42472A603D840075FE5F /* Build configuration list for PBXNativeTarget "BeyondNETSampleSwiftMacOSApp" */; + buildPhases = ( + E71E42342A603D830075FE5F /* Sources */, + E71E42352A603D830075FE5F /* Frameworks */, + E71E42362A603D830075FE5F /* Resources */, + E71E42512A603E0A0075FE5F /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = BeyondNETSampleSwiftMacOSApp; + productName = BeyondNETSampleSwiftMacOSApp; + productReference = E71E42382A603D830075FE5F /* BeyondNETSampleSwiftMacOSApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + E71E42302A603D830075FE5F /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1430; + LastUpgradeCheck = 1430; + TargetAttributes = { + E71E42372A603D830075FE5F = { + CreatedOnToolsVersion = 14.3.1; + }; + }; + }; + buildConfigurationList = E71E42332A603D830075FE5F /* Build configuration list for PBXProject "BeyondNETSampleSwiftMacOSApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = E71E422F2A603D830075FE5F; + productRefGroup = E71E42392A603D830075FE5F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + E71E42372A603D830075FE5F /* BeyondNETSampleSwiftMacOSApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + E71E42362A603D830075FE5F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E71E42402A603D840075FE5F /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + E71E42342A603D830075FE5F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + E71E423E2A603D830075FE5F /* ContentView.swift in Sources */, + E71E423C2A603D830075FE5F /* BeyondNETSampleSwiftMacOSAppApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + E71E42452A603D840075FE5F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + E71E42462A603D840075FE5F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 13.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + E71E42482A603D840075FE5F /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = Source/BeyondNETSampleSwiftMacOSApp.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.royalapps.BeyondNETSampleSwiftMacOSApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + E71E42492A603D840075FE5F /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = Source/BeyondNETSampleSwiftMacOSApp.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.royalapps.BeyondNETSampleSwiftMacOSApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + E71E42332A603D830075FE5F /* Build configuration list for PBXProject "BeyondNETSampleSwiftMacOSApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + E71E42452A603D840075FE5F /* Debug */, + E71E42462A603D840075FE5F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + E71E42472A603D840075FE5F /* Build configuration list for PBXNativeTarget "BeyondNETSampleSwiftMacOSApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + E71E42482A603D840075FE5F /* Debug */, + E71E42492A603D840075FE5F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = E71E42302A603D830075FE5F /* Project object */; +} diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/AccentColor.colorset/Contents.json b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/AppIcon.appiconset/Contents.json b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..3f00db43 --- /dev/null +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,58 @@ +{ + "images" : [ + { + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/Contents.json b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/BeyondNETSampleSwiftMacOSApp.entitlements b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/BeyondNETSampleSwiftMacOSApp.entitlements new file mode 100644 index 00000000..f2ef3ae0 --- /dev/null +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/BeyondNETSampleSwiftMacOSApp.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/BeyondNETSampleSwiftMacOSAppApp.swift b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/BeyondNETSampleSwiftMacOSAppApp.swift new file mode 100644 index 00000000..fc84390b --- /dev/null +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/BeyondNETSampleSwiftMacOSAppApp.swift @@ -0,0 +1,10 @@ +import SwiftUI + +@main +struct BeyondNETSampleSwiftMacOSAppApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/ContentView.swift b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/ContentView.swift new file mode 100644 index 00000000..695a29b2 --- /dev/null +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftMacOSApp/Source/ContentView.swift @@ -0,0 +1,30 @@ +import SwiftUI +import BeyondNETSampleSwift + +struct ContentView: View { + var body: some View { + VStack { + Text("Here's a new .NET System.Guid:") + Text(newGuidString()) + } + .padding() + } + + func newGuidString() -> String { + guard let guid = try? System.Guid.newGuid() else { + fatalError("Error while generating new System.Guid") + } + + guard let guidString = try? guid.toString()?.string() else { + fatalError("Error while converting System.Guid to String") + } + + return guidString + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftiOSApp/BeyondNETSampleSwiftiOSApp.xcodeproj/project.pbxproj b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftiOSApp/BeyondNETSampleSwiftiOSApp.xcodeproj/project.pbxproj index 43fc843a..504cd733 100644 --- a/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftiOSApp/BeyondNETSampleSwiftiOSApp.xcodeproj/project.pbxproj +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSampleSwiftiOSApp/BeyondNETSampleSwiftiOSApp.xcodeproj/project.pbxproj @@ -10,11 +10,11 @@ E71E420D2A6015C80075FE5F /* BeyondNETSampleSwiftiOSAppApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = E71E420C2A6015C80075FE5F /* BeyondNETSampleSwiftiOSAppApp.swift */; }; E71E420F2A6015C80075FE5F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E71E420E2A6015C80075FE5F /* ContentView.swift */; }; E71E42112A6015C90075FE5F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E71E42102A6015C90075FE5F /* Assets.xcassets */; }; - E71E421D2A6016FF0075FE5F /* BeyondNETSampleSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E71E421B2A6016040075FE5F /* BeyondNETSampleSwift.framework */; }; - E71E421E2A6017000075FE5F /* BeyondNETSampleSwift.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E71E421B2A6016040075FE5F /* BeyondNETSampleSwift.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; E71E42242A6017710075FE5F /* libBeyondDotNETSampleNative.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = E71E42232A6017710075FE5F /* libBeyondDotNETSampleNative.xcframework */; }; E71E42252A6017710075FE5F /* libBeyondDotNETSampleNative.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E71E42232A6017710075FE5F /* libBeyondDotNETSampleNative.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; E71E422E2A6032A30075FE5F /* icudt.dat in Resources */ = {isa = PBXBuildFile; fileRef = E71E422A2A6030820075FE5F /* icudt.dat */; }; + E71E424B2A603E030075FE5F /* BeyondNETSampleSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E71E424A2A603E030075FE5F /* BeyondNETSampleSwift.framework */; }; + E71E424C2A603E030075FE5F /* BeyondNETSampleSwift.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = E71E424A2A603E030075FE5F /* BeyondNETSampleSwift.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -24,8 +24,8 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( - E71E421E2A6017000075FE5F /* BeyondNETSampleSwift.framework in Embed Frameworks */, E71E42252A6017710075FE5F /* libBeyondDotNETSampleNative.xcframework in Embed Frameworks */, + E71E424C2A603E030075FE5F /* BeyondNETSampleSwift.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -37,10 +37,9 @@ E71E420C2A6015C80075FE5F /* BeyondNETSampleSwiftiOSAppApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BeyondNETSampleSwiftiOSAppApp.swift; sourceTree = ""; }; E71E420E2A6015C80075FE5F /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; E71E42102A6015C90075FE5F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - E71E421B2A6016040075FE5F /* BeyondNETSampleSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = BeyondNETSampleSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - E71E42202A6017210075FE5F /* libBeyondDotNETSampleNative.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = libBeyondDotNETSampleNative.xcframework; path = "../../../../../../.Trash/bin copy 3/Release/net8.0/apple-universal/publish/libBeyondDotNETSampleNative.xcframework"; sourceTree = ""; }; E71E42232A6017710075FE5F /* libBeyondDotNETSampleNative.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = libBeyondDotNETSampleNative.xcframework; path = ../libBeyondDotNETSampleNative.xcframework; sourceTree = ""; }; E71E422A2A6030820075FE5F /* icudt.dat */ = {isa = PBXFileReference; lastKnownFileType = file; name = icudt.dat; path = ../icudt.dat; sourceTree = ""; }; + E71E424A2A603E030075FE5F /* BeyondNETSampleSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = BeyondNETSampleSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -48,8 +47,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - E71E421D2A6016FF0075FE5F /* BeyondNETSampleSwift.framework in Frameworks */, E71E42242A6017710075FE5F /* libBeyondDotNETSampleNative.xcframework in Frameworks */, + E71E424B2A603E030075FE5F /* BeyondNETSampleSwift.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -87,9 +86,8 @@ E71E421A2A6016040075FE5F /* Frameworks */ = { isa = PBXGroup; children = ( - E71E42202A6017210075FE5F /* libBeyondDotNETSampleNative.xcframework */, + E71E424A2A603E030075FE5F /* BeyondNETSampleSwift.framework */, E71E42232A6017710075FE5F /* libBeyondDotNETSampleNative.xcframework */, - E71E421B2A6016040075FE5F /* BeyondNETSampleSwift.framework */, ); name = Frameworks; sourceTree = ""; @@ -294,7 +292,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = VXP8K9EDP6; + DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; @@ -322,7 +320,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = VXP8K9EDP6; + DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; diff --git a/Samples/Beyond.NET.Sample.Swift/BeyondNETSamplesSwift.xcworkspace/contents.xcworkspacedata b/Samples/Beyond.NET.Sample.Swift/BeyondNETSamplesSwift.xcworkspace/contents.xcworkspacedata index 3b2be65c..dceb45d7 100644 --- a/Samples/Beyond.NET.Sample.Swift/BeyondNETSamplesSwift.xcworkspace/contents.xcworkspacedata +++ b/Samples/Beyond.NET.Sample.Swift/BeyondNETSamplesSwift.xcworkspace/contents.xcworkspacedata @@ -4,6 +4,9 @@ + +