diff --git a/VDS.xcworkspace/contents.xcworkspacedata b/VDS.xcworkspace/contents.xcworkspacedata index 91951bf..8ba7391 100644 --- a/VDS.xcworkspace/contents.xcworkspacedata +++ b/VDS.xcworkspace/contents.xcworkspacedata @@ -1,6 +1,9 @@ + + diff --git a/VDSSample.xcodeproj/project.pbxproj b/VDSSample.xcodeproj/project.pbxproj index def532e..f68bcb4 100644 --- a/VDSSample.xcodeproj/project.pbxproj +++ b/VDSSample.xcodeproj/project.pbxproj @@ -161,6 +161,8 @@ EA5E305B295111050082B959 /* TileletViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TileletViewController.swift; sourceTree = ""; }; EA5F86CD2A1E863F00BC83E4 /* TabsContainerViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabsContainerViewController.swift; sourceTree = ""; }; EA6642962BD1B2E700D81DC4 /* ColorPickerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ColorPickerView.swift; sourceTree = ""; }; + EA78C7A42C0E64A800430AD1 /* vds-sample-dev.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "vds-sample-dev.xcconfig"; sourceTree = ""; }; + EA78C7A52C0E64CC00430AD1 /* vds-sample.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "vds-sample.xcconfig"; sourceTree = ""; }; EA81410D2A0ED8DC004F60D2 /* ButtonIconViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ButtonIconViewController.swift; sourceTree = ""; }; EA89201828B56DF5006B9984 /* RadioBoxGroupViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RadioBoxGroupViewController.swift; sourceTree = ""; }; EA89203F28B66CE2006B9984 /* ScrollViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ScrollViewController.swift; sourceTree = ""; }; @@ -359,6 +361,8 @@ children = ( EAF7F0C4289DA24F00B287F5 /* Artifactory */, EAF7F0792899698800B287F5 /* Resources */, + EA78C7A42C0E64A800430AD1 /* vds-sample-dev.xcconfig */, + EA78C7A52C0E64CC00430AD1 /* vds-sample.xcconfig */, ); path = "Supporting Files"; sourceTree = ""; @@ -579,6 +583,7 @@ /* Begin XCBuildConfiguration section */ EA3C3BAB289966F1000CA526 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EA78C7A42C0E64A800430AD1 /* vds-sample-dev.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -639,6 +644,7 @@ }; EA3C3BAC289966F1000CA526 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EA78C7A52C0E64CC00430AD1 /* vds-sample.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -693,6 +699,7 @@ }; EA3C3BAE289966F1000CA526 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EA78C7A42C0E64A800430AD1 /* vds-sample-dev.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -728,6 +735,7 @@ }; EA3C3BAF289966F1000CA526 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EA78C7A52C0E64CC00430AD1 /* vds-sample.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -763,6 +771,7 @@ }; EAF7F0C0289DA16000B287F5 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EA78C7A42C0E64A800430AD1 /* vds-sample-dev.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FCMA4QKS77; @@ -772,6 +781,7 @@ }; EAF7F0C1289DA16000B287F5 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EA78C7A52C0E64CC00430AD1 /* vds-sample.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FCMA4QKS77; @@ -781,6 +791,7 @@ }; EAF7F0D0289DA44300B287F5 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EA78C7A42C0E64A800430AD1 /* vds-sample-dev.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FCMA4QKS77; @@ -790,6 +801,7 @@ }; EAF7F0D1289DA44300B287F5 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EA78C7A52C0E64CC00430AD1 /* vds-sample.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = FCMA4QKS77; diff --git a/VDSSample/Supporting Files/vds-sample-dev.xcconfig b/VDSSample/Supporting Files/vds-sample-dev.xcconfig new file mode 100644 index 0000000..29820fd --- /dev/null +++ b/VDSSample/Supporting Files/vds-sample-dev.xcconfig @@ -0,0 +1,11 @@ +// +// vds-sample-dev.xcconfig +// VDSSample +// +// Created by Matt Bruce on 6/3/24. +// + +// Configuration settings file format documentation can be found at: +// https://help.apple.com/xcode/#/dev745c5c974 + +#include? "../../workspaceSettings.xcconfig" diff --git a/VDSSample/Supporting Files/vds-sample.xcconfig b/VDSSample/Supporting Files/vds-sample.xcconfig new file mode 100644 index 0000000..0d89410 --- /dev/null +++ b/VDSSample/Supporting Files/vds-sample.xcconfig @@ -0,0 +1,11 @@ +// +// vds-sample.xcconfig +// VDSSample +// +// Created by Matt Bruce on 6/3/24. +// + +// Configuration settings file format documentation can be found at: +// https://help.apple.com/xcode/#/dev745c5c974 + +#include? "../../workspaceSettings.xcconfig" diff --git a/VDSSample/ViewControllers/MenuViewController.swift b/VDSSample/ViewControllers/MenuViewController.swift index 9ec0747..272f8f3 100644 --- a/VDSSample/ViewControllers/MenuViewController.swift +++ b/VDSSample/ViewControllers/MenuViewController.swift @@ -111,10 +111,15 @@ class MenuViewController: UITableViewController, TooltipLaunchable { override func viewDidLoad() { title = "VDS Sample: Build \(Bundle.main.build ?? "none")" - let tooltip = VDS.Tooltip() - tooltip.title = "Release Notes: \(VDSHelper.version)" - tooltip.content = VDSHelper.releaseNotes() - navigationItem.rightBarButtonItem = UIBarButtonItem(customView: tooltip) + + let content = VDSHelper.releaseNotes() + if !content.isEmpty { + let tooltip = VDS.Tooltip() + tooltip.title = "Release Notes: \(VDSHelper.version)" + tooltip.content = content + navigationItem.rightBarButtonItem = UIBarButtonItem(customView: tooltip) + } + super.viewDidLoad() overrideUserInterfaceStyle = .light tableView.register(MenuCell.self, forCellReuseIdentifier: "cell") diff --git a/workspaceSettings.xcconfig b/workspaceSettings.xcconfig new file mode 100644 index 0000000..c59c5be --- /dev/null +++ b/workspaceSettings.xcconfig @@ -0,0 +1,11 @@ +// +// workspaceSettings.xcconfig +// +// +// Created by Matt Bruce on 6/3/24. +// + +// Configuration settings file format documentation can be found at: +// https://help.apple.com/xcode/#/dev745c5c974 + +VDS_ADD_CHANGELOG_FILES = 1