diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7c545e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ + +FluentTest/.DS_Store +.DS_Store diff --git a/FluentTest.xcodeproj/project.pbxproj b/FluentTest.xcodeproj/project.pbxproj new file mode 100644 index 0000000..4450fbd --- /dev/null +++ b/FluentTest.xcodeproj/project.pbxproj @@ -0,0 +1,422 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + 4B3DDE4BDFA539FFBF3886F7 /* Pods_FluentTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14613DA9FA0D847BBDBCC8C6 /* Pods_FluentTest.framework */; }; + 52E298C5293E75F0006CDC63 /* AvatarGroupContainer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52E298C4293E75F0006CDC63 /* AvatarGroupContainer.swift */; }; + 52E298C7293E7664006CDC63 /* ParticipantAvatarGroup.swift in Sources */ = {isa = PBXBuildFile; fileRef = 52E298C6293E7664006CDC63 /* ParticipantAvatarGroup.swift */; }; + 7518D9B8291ABCE10022E6FF /* FluentTestApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7518D9B7291ABCE10022E6FF /* FluentTestApp.swift */; }; + 7518D9BA291ABCE10022E6FF /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7518D9B9291ABCE10022E6FF /* ContentView.swift */; }; + 7518D9BC291ABCE40022E6FF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7518D9BB291ABCE40022E6FF /* Assets.xcassets */; }; + 7518D9BF291ABCE40022E6FF /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7518D9BE291ABCE40022E6FF /* Preview Assets.xcassets */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 14613DA9FA0D847BBDBCC8C6 /* Pods_FluentTest.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_FluentTest.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 40FD717EB6AA29168FD3C384 /* Pods-FluentTest.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FluentTest.debug.xcconfig"; path = "Target Support Files/Pods-FluentTest/Pods-FluentTest.debug.xcconfig"; sourceTree = ""; }; + 52E298C4293E75F0006CDC63 /* AvatarGroupContainer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AvatarGroupContainer.swift; sourceTree = ""; }; + 52E298C6293E7664006CDC63 /* ParticipantAvatarGroup.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParticipantAvatarGroup.swift; sourceTree = ""; }; + 7518D9B4291ABCE10022E6FF /* FluentTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FluentTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 7518D9B7291ABCE10022E6FF /* FluentTestApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FluentTestApp.swift; sourceTree = ""; }; + 7518D9B9291ABCE10022E6FF /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 7518D9BB291ABCE40022E6FF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 7518D9BE291ABCE40022E6FF /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + EA36E74FA478377DF13FCCFB /* Pods-FluentTest.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-FluentTest.release.xcconfig"; path = "Target Support Files/Pods-FluentTest/Pods-FluentTest.release.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 7518D9B1291ABCE10022E6FF /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4B3DDE4BDFA539FFBF3886F7 /* Pods_FluentTest.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4D55D7D8766C1EE0DE67BC63 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 14613DA9FA0D847BBDBCC8C6 /* Pods_FluentTest.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 7518D9AB291ABCE10022E6FF = { + isa = PBXGroup; + children = ( + 7518D9B6291ABCE10022E6FF /* FluentTest */, + 7518D9B5291ABCE10022E6FF /* Products */, + C0AE7897844F72E1AEFACEFE /* Pods */, + 4D55D7D8766C1EE0DE67BC63 /* Frameworks */, + ); + sourceTree = ""; + }; + 7518D9B5291ABCE10022E6FF /* Products */ = { + isa = PBXGroup; + children = ( + 7518D9B4291ABCE10022E6FF /* FluentTest.app */, + ); + name = Products; + sourceTree = ""; + }; + 7518D9B6291ABCE10022E6FF /* FluentTest */ = { + isa = PBXGroup; + children = ( + 7518D9B7291ABCE10022E6FF /* FluentTestApp.swift */, + 7518D9B9291ABCE10022E6FF /* ContentView.swift */, + 7518D9BB291ABCE40022E6FF /* Assets.xcassets */, + 7518D9BD291ABCE40022E6FF /* Preview Content */, + 52E298C4293E75F0006CDC63 /* AvatarGroupContainer.swift */, + 52E298C6293E7664006CDC63 /* ParticipantAvatarGroup.swift */, + ); + path = FluentTest; + sourceTree = ""; + }; + 7518D9BD291ABCE40022E6FF /* Preview Content */ = { + isa = PBXGroup; + children = ( + 7518D9BE291ABCE40022E6FF /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + C0AE7897844F72E1AEFACEFE /* Pods */ = { + isa = PBXGroup; + children = ( + 40FD717EB6AA29168FD3C384 /* Pods-FluentTest.debug.xcconfig */, + EA36E74FA478377DF13FCCFB /* Pods-FluentTest.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 7518D9B3291ABCE10022E6FF /* FluentTest */ = { + isa = PBXNativeTarget; + buildConfigurationList = 7518D9C2291ABCE40022E6FF /* Build configuration list for PBXNativeTarget "FluentTest" */; + buildPhases = ( + A5258D6FDD0E84539FC0B58E /* [CP] Check Pods Manifest.lock */, + 7518D9B0291ABCE10022E6FF /* Sources */, + 7518D9B1291ABCE10022E6FF /* Frameworks */, + 7518D9B2291ABCE10022E6FF /* Resources */, + 0D28941CD3930F303808EACF /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = FluentTest; + productName = FluentTest; + productReference = 7518D9B4291ABCE10022E6FF /* FluentTest.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 7518D9AC291ABCE10022E6FF /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1410; + LastUpgradeCheck = 1410; + TargetAttributes = { + 7518D9B3291ABCE10022E6FF = { + CreatedOnToolsVersion = 14.1; + }; + }; + }; + buildConfigurationList = 7518D9AF291ABCE10022E6FF /* Build configuration list for PBXProject "FluentTest" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 7518D9AB291ABCE10022E6FF; + productRefGroup = 7518D9B5291ABCE10022E6FF /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 7518D9B3291ABCE10022E6FF /* FluentTest */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 7518D9B2291ABCE10022E6FF /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 7518D9BF291ABCE40022E6FF /* Preview Assets.xcassets in Resources */, + 7518D9BC291ABCE40022E6FF /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 0D28941CD3930F303808EACF /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-FluentTest/Pods-FluentTest-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-FluentTest/Pods-FluentTest-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FluentTest/Pods-FluentTest-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + A5258D6FDD0E84539FC0B58E /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-FluentTest-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 7518D9B0291ABCE10022E6FF /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 52E298C5293E75F0006CDC63 /* AvatarGroupContainer.swift in Sources */, + 7518D9BA291ABCE10022E6FF /* ContentView.swift in Sources */, + 52E298C7293E7664006CDC63 /* ParticipantAvatarGroup.swift in Sources */, + 7518D9B8291ABCE10022E6FF /* FluentTestApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 7518D9C0291ABCE40022E6FF /* 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; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 7518D9C1291ABCE40022E6FF /* 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; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 7518D9C3291ABCE40022E6FF /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 40FD717EB6AA29168FD3C384 /* Pods-FluentTest.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"FluentTest/Preview Content\""; + DEVELOPMENT_TEAM = UBF8T346G9; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.FluentTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 7518D9C4291ABCE40022E6FF /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EA36E74FA478377DF13FCCFB /* Pods-FluentTest.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"FluentTest/Preview Content\""; + DEVELOPMENT_TEAM = UBF8T346G9; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.microsoft.FluentTest; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 7518D9AF291ABCE10022E6FF /* Build configuration list for PBXProject "FluentTest" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7518D9C0291ABCE40022E6FF /* Debug */, + 7518D9C1291ABCE40022E6FF /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 7518D9C2291ABCE40022E6FF /* Build configuration list for PBXNativeTarget "FluentTest" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 7518D9C3291ABCE40022E6FF /* Debug */, + 7518D9C4291ABCE40022E6FF /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 7518D9AC291ABCE10022E6FF /* Project object */; +} diff --git a/FluentTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/FluentTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/FluentTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/FluentTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/FluentTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/FluentTest.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/FluentTest.xcodeproj/project.xcworkspace/xcuserdata/emlyn.xcuserdatad/UserInterfaceState.xcuserstate b/FluentTest.xcodeproj/project.xcworkspace/xcuserdata/emlyn.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..8558fe2 Binary files /dev/null and b/FluentTest.xcodeproj/project.xcworkspace/xcuserdata/emlyn.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/FluentTest.xcodeproj/xcuserdata/emlyn.xcuserdatad/xcschemes/xcschememanagement.plist b/FluentTest.xcodeproj/xcuserdata/emlyn.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..9639c9c --- /dev/null +++ b/FluentTest.xcodeproj/xcuserdata/emlyn.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + FluentTest.xcscheme_^#shared#^_ + + orderHint + 3 + + + + diff --git a/FluentTest.xcodeproj/xcuserdata/john.xcuserdatad/xcschemes/xcschememanagement.plist b/FluentTest.xcodeproj/xcuserdata/john.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..9639c9c --- /dev/null +++ b/FluentTest.xcodeproj/xcuserdata/john.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + FluentTest.xcscheme_^#shared#^_ + + orderHint + 3 + + + + diff --git a/FluentTest.xcworkspace/contents.xcworkspacedata b/FluentTest.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..fa83e2b --- /dev/null +++ b/FluentTest.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/FluentTest.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/FluentTest.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/FluentTest.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/FluentTest.xcworkspace/xcuserdata/emlyn.xcuserdatad/UserInterfaceState.xcuserstate b/FluentTest.xcworkspace/xcuserdata/emlyn.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..86ada79 Binary files /dev/null and b/FluentTest.xcworkspace/xcuserdata/emlyn.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/FluentTest.xcworkspace/xcuserdata/emlyn.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/FluentTest.xcworkspace/xcuserdata/emlyn.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..f7d3577 --- /dev/null +++ b/FluentTest.xcworkspace/xcuserdata/emlyn.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + diff --git a/FluentTest.xcworkspace/xcuserdata/john.xcuserdatad/UserInterfaceState.xcuserstate b/FluentTest.xcworkspace/xcuserdata/john.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..58bdd9b Binary files /dev/null and b/FluentTest.xcworkspace/xcuserdata/john.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/FluentTest.xcworkspace/xcuserdata/john.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/FluentTest.xcworkspace/xcuserdata/john.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..9df2515 --- /dev/null +++ b/FluentTest.xcworkspace/xcuserdata/john.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,6 @@ + + + diff --git a/FluentTest/Assets.xcassets/AccentColor.colorset/Contents.json b/FluentTest/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/FluentTest/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/FluentTest/Assets.xcassets/AppIcon.appiconset/Contents.json b/FluentTest/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/FluentTest/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/FluentTest/Assets.xcassets/Contents.json b/FluentTest/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/FluentTest/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/FluentTest/AvatarGroupContainer.swift b/FluentTest/AvatarGroupContainer.swift new file mode 100644 index 0000000..4d90f0b --- /dev/null +++ b/FluentTest/AvatarGroupContainer.swift @@ -0,0 +1,25 @@ +// +//  Copyright (c) Microsoft Corporation. All rights reserved. +//  Licensed under the MIT License. +// + +import SwiftUI + +struct AvatarGroupContainer: UIViewRepresentable { + + var participantList: [ParticipantInfoModel] + var avatarGroup: ParticipantAvatarGroup + + func makeUIView(context: Context) -> ParticipantAvatarGroup { + avatarGroup.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) + return avatarGroup + } + + func updateUIView(_ uiView: ParticipantAvatarGroup, context: Context) { + avatarGroup.setAvatars(to: participantList) + } +} + +struct ParticipantInfoModel { + var displayName: String +} diff --git a/FluentTest/ContentView.swift b/FluentTest/ContentView.swift new file mode 100644 index 0000000..b7294e6 --- /dev/null +++ b/FluentTest/ContentView.swift @@ -0,0 +1,64 @@ +// +// ContentView.swift +// FluentTest +// +// Created by Emlyn Bolton-Maggs on 2022-11-08. +// + +import SwiftUI + +struct ContentView: View { + @ObservedObject var viewmodel = ViewModel() + + var body: some View { + VStack { + Image(systemName: "globe") + .imageScale(.large) + .foregroundColor(.accentColor) + Text("Hello, world!") + AvatarGroupContainer(participantList: viewmodel.participants, + avatarGroup: viewmodel.avatarGroup) + } + .padding() + .onAppear { + DispatchQueue.main.asyncAfter(deadline: .now() + 1.9, execute: { + viewmodel.participants = [ + ParticipantInfoModel(displayName: "pp"), + ParticipantInfoModel(displayName: "sd"), + ParticipantInfoModel(displayName: "jj"), + ParticipantInfoModel(displayName: "jm"), + ParticipantInfoModel(displayName: "jd"), + ParticipantInfoModel(displayName: "jq") + ] + }) + DispatchQueue.main.asyncAfter(deadline: .now() + 2, execute: { + viewmodel.participants = [ + ParticipantInfoModel(displayName: "jj"), + ParticipantInfoModel(displayName: "jm"), + ParticipantInfoModel(displayName: "jd"), + ParticipantInfoModel(displayName: "jq") + ] + }) + DispatchQueue.main.asyncAfter(deadline: .now() + 2.1, execute: { + viewmodel.participants = [ + ParticipantInfoModel(displayName: "oo"), + ParticipantInfoModel(displayName: "oo"), + ] + }) + } + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} + +class ViewModel: ObservableObject { + var avatarGroup = ParticipantAvatarGroup() + @Published var participants: [ParticipantInfoModel] = [ + ParticipantInfoModel(displayName: "oo"), + ParticipantInfoModel(displayName: "oo"), + ] +} diff --git a/FluentTest/FluentTestApp.swift b/FluentTest/FluentTestApp.swift new file mode 100644 index 0000000..8fc0b10 --- /dev/null +++ b/FluentTest/FluentTestApp.swift @@ -0,0 +1,17 @@ +// +// FluentTestApp.swift +// FluentTest +// +// Created by Emlyn Bolton-Maggs on 2022-11-08. +// + +import SwiftUI + +@main +struct FluentTestApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/FluentTest/ParticipantAvatarGroup.swift b/FluentTest/ParticipantAvatarGroup.swift new file mode 100644 index 0000000..0539db0 --- /dev/null +++ b/FluentTest/ParticipantAvatarGroup.swift @@ -0,0 +1,71 @@ +// +//  Copyright (c) Microsoft Corporation. All rights reserved. +//  Licensed under the MIT License. +// + +import FluentUI +import UIKit + +class ParticipantAvatarGroup: UIView { + + private var group: MSFAvatarGroup? + private var lastSeen: [ParticipantInfoModel]? + private var avatarCount: Int = 0 + + private enum Constants { + static let avatarWidth: CGFloat = 16.0 + static let maxAvatarAllowed: Int = 2 + static let overflowCount: Int = 0 + } + + override init(frame: CGRect) { + super.init(frame: frame) + initAvatarGroup() + } + + required init?(coder: NSCoder) { + super.init(coder: coder) + initAvatarGroup() + } + +} + +extension ParticipantAvatarGroup { + private func initAvatarGroup() { + group = MSFAvatarGroup(style: .stack, size: .xsmall) + guard let group = group else { + return + } + group.state.overflowCount = Constants.overflowCount + // total avatar shown would be 3 + // (max allowed 2 + 1 to show number of remaining participants) + group.state.maxDisplayedAvatars = Constants.maxAvatarAllowed + group.isAccessibilityElement = false + addSubview(group) + group.translatesAutoresizingMaskIntoConstraints = false + NSLayoutConstraint.activate([ + group.leftAnchor.constraint(equalTo: self.leftAnchor), + group.rightAnchor.constraint(equalTo: self.rightAnchor), + group.topAnchor.constraint(equalTo: self.topAnchor), + group.bottomAnchor.constraint(equalTo: self.bottomAnchor) + ]) + } + + func setAvatars(to newData: [ParticipantInfoModel]) { + guard let group = group else { + return + } + for _ in 0..