├── Finder ├── Finder.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcuserdata │ │ │ └── jordansinger.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcuserdata │ │ └── jordansinger.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist └── Finder │ ├── Assets.xcassets │ ├── AccentColor.colorset │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json │ ├── ContentView.swift │ ├── Finder.entitlements │ ├── FinderApp.swift │ ├── Info.plist │ └── Preview Content │ └── Preview Assets.xcassets │ └── Contents.json └── README.md /Finder/Finder.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 86DE4D0125ABAAAA00AEA5A5 /* FinderApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86DE4D0025ABAAAA00AEA5A5 /* FinderApp.swift */; }; 11 | 86DE4D0325ABAAAA00AEA5A5 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 86DE4D0225ABAAAA00AEA5A5 /* ContentView.swift */; }; 12 | 86DE4D0525ABAAAC00AEA5A5 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 86DE4D0425ABAAAC00AEA5A5 /* Assets.xcassets */; }; 13 | 86DE4D0825ABAAAC00AEA5A5 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 86DE4D0725ABAAAC00AEA5A5 /* Preview Assets.xcassets */; }; 14 | /* End PBXBuildFile section */ 15 | 16 | /* Begin PBXFileReference section */ 17 | 86DE4CFD25ABAAAA00AEA5A5 /* Finder.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Finder.app; sourceTree = BUILT_PRODUCTS_DIR; }; 18 | 86DE4D0025ABAAAA00AEA5A5 /* FinderApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FinderApp.swift; sourceTree = ""; }; 19 | 86DE4D0225ABAAAA00AEA5A5 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 20 | 86DE4D0425ABAAAC00AEA5A5 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 21 | 86DE4D0725ABAAAC00AEA5A5 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 22 | 86DE4D0925ABAAAC00AEA5A5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 23 | 86DE4D0A25ABAAAC00AEA5A5 /* Finder.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Finder.entitlements; sourceTree = ""; }; 24 | /* End PBXFileReference section */ 25 | 26 | /* Begin PBXFrameworksBuildPhase section */ 27 | 86DE4CFA25ABAAAA00AEA5A5 /* Frameworks */ = { 28 | isa = PBXFrameworksBuildPhase; 29 | buildActionMask = 2147483647; 30 | files = ( 31 | ); 32 | runOnlyForDeploymentPostprocessing = 0; 33 | }; 34 | /* End PBXFrameworksBuildPhase section */ 35 | 36 | /* Begin PBXGroup section */ 37 | 86DE4CF425ABAAAA00AEA5A5 = { 38 | isa = PBXGroup; 39 | children = ( 40 | 86DE4CFF25ABAAAA00AEA5A5 /* Finder */, 41 | 86DE4CFE25ABAAAA00AEA5A5 /* Products */, 42 | ); 43 | sourceTree = ""; 44 | }; 45 | 86DE4CFE25ABAAAA00AEA5A5 /* Products */ = { 46 | isa = PBXGroup; 47 | children = ( 48 | 86DE4CFD25ABAAAA00AEA5A5 /* Finder.app */, 49 | ); 50 | name = Products; 51 | sourceTree = ""; 52 | }; 53 | 86DE4CFF25ABAAAA00AEA5A5 /* Finder */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 86DE4D0025ABAAAA00AEA5A5 /* FinderApp.swift */, 57 | 86DE4D0225ABAAAA00AEA5A5 /* ContentView.swift */, 58 | 86DE4D0425ABAAAC00AEA5A5 /* Assets.xcassets */, 59 | 86DE4D0925ABAAAC00AEA5A5 /* Info.plist */, 60 | 86DE4D0A25ABAAAC00AEA5A5 /* Finder.entitlements */, 61 | 86DE4D0625ABAAAC00AEA5A5 /* Preview Content */, 62 | ); 63 | path = Finder; 64 | sourceTree = ""; 65 | }; 66 | 86DE4D0625ABAAAC00AEA5A5 /* Preview Content */ = { 67 | isa = PBXGroup; 68 | children = ( 69 | 86DE4D0725ABAAAC00AEA5A5 /* Preview Assets.xcassets */, 70 | ); 71 | path = "Preview Content"; 72 | sourceTree = ""; 73 | }; 74 | /* End PBXGroup section */ 75 | 76 | /* Begin PBXNativeTarget section */ 77 | 86DE4CFC25ABAAAA00AEA5A5 /* Finder */ = { 78 | isa = PBXNativeTarget; 79 | buildConfigurationList = 86DE4D0D25ABAAAC00AEA5A5 /* Build configuration list for PBXNativeTarget "Finder" */; 80 | buildPhases = ( 81 | 86DE4CF925ABAAAA00AEA5A5 /* Sources */, 82 | 86DE4CFA25ABAAAA00AEA5A5 /* Frameworks */, 83 | 86DE4CFB25ABAAAA00AEA5A5 /* Resources */, 84 | ); 85 | buildRules = ( 86 | ); 87 | dependencies = ( 88 | ); 89 | name = Finder; 90 | productName = Finder; 91 | productReference = 86DE4CFD25ABAAAA00AEA5A5 /* Finder.app */; 92 | productType = "com.apple.product-type.application"; 93 | }; 94 | /* End PBXNativeTarget section */ 95 | 96 | /* Begin PBXProject section */ 97 | 86DE4CF525ABAAAA00AEA5A5 /* Project object */ = { 98 | isa = PBXProject; 99 | attributes = { 100 | LastSwiftUpdateCheck = 1230; 101 | LastUpgradeCheck = 1230; 102 | TargetAttributes = { 103 | 86DE4CFC25ABAAAA00AEA5A5 = { 104 | CreatedOnToolsVersion = 12.3; 105 | }; 106 | }; 107 | }; 108 | buildConfigurationList = 86DE4CF825ABAAAA00AEA5A5 /* Build configuration list for PBXProject "Finder" */; 109 | compatibilityVersion = "Xcode 9.3"; 110 | developmentRegion = en; 111 | hasScannedForEncodings = 0; 112 | knownRegions = ( 113 | en, 114 | Base, 115 | ); 116 | mainGroup = 86DE4CF425ABAAAA00AEA5A5; 117 | productRefGroup = 86DE4CFE25ABAAAA00AEA5A5 /* Products */; 118 | projectDirPath = ""; 119 | projectRoot = ""; 120 | targets = ( 121 | 86DE4CFC25ABAAAA00AEA5A5 /* Finder */, 122 | ); 123 | }; 124 | /* End PBXProject section */ 125 | 126 | /* Begin PBXResourcesBuildPhase section */ 127 | 86DE4CFB25ABAAAA00AEA5A5 /* Resources */ = { 128 | isa = PBXResourcesBuildPhase; 129 | buildActionMask = 2147483647; 130 | files = ( 131 | 86DE4D0825ABAAAC00AEA5A5 /* Preview Assets.xcassets in Resources */, 132 | 86DE4D0525ABAAAC00AEA5A5 /* Assets.xcassets in Resources */, 133 | ); 134 | runOnlyForDeploymentPostprocessing = 0; 135 | }; 136 | /* End PBXResourcesBuildPhase section */ 137 | 138 | /* Begin PBXSourcesBuildPhase section */ 139 | 86DE4CF925ABAAAA00AEA5A5 /* Sources */ = { 140 | isa = PBXSourcesBuildPhase; 141 | buildActionMask = 2147483647; 142 | files = ( 143 | 86DE4D0325ABAAAA00AEA5A5 /* ContentView.swift in Sources */, 144 | 86DE4D0125ABAAAA00AEA5A5 /* FinderApp.swift in Sources */, 145 | ); 146 | runOnlyForDeploymentPostprocessing = 0; 147 | }; 148 | /* End PBXSourcesBuildPhase section */ 149 | 150 | /* Begin XCBuildConfiguration section */ 151 | 86DE4D0B25ABAAAC00AEA5A5 /* Debug */ = { 152 | isa = XCBuildConfiguration; 153 | buildSettings = { 154 | ALWAYS_SEARCH_USER_PATHS = NO; 155 | CLANG_ANALYZER_NONNULL = YES; 156 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 157 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 158 | CLANG_CXX_LIBRARY = "libc++"; 159 | CLANG_ENABLE_MODULES = YES; 160 | CLANG_ENABLE_OBJC_ARC = YES; 161 | CLANG_ENABLE_OBJC_WEAK = YES; 162 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 163 | CLANG_WARN_BOOL_CONVERSION = YES; 164 | CLANG_WARN_COMMA = YES; 165 | CLANG_WARN_CONSTANT_CONVERSION = YES; 166 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 167 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 168 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 169 | CLANG_WARN_EMPTY_BODY = YES; 170 | CLANG_WARN_ENUM_CONVERSION = YES; 171 | CLANG_WARN_INFINITE_RECURSION = YES; 172 | CLANG_WARN_INT_CONVERSION = YES; 173 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 174 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 175 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 176 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 177 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 178 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 179 | CLANG_WARN_STRICT_PROTOTYPES = YES; 180 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 181 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 182 | CLANG_WARN_UNREACHABLE_CODE = YES; 183 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 184 | COPY_PHASE_STRIP = NO; 185 | DEBUG_INFORMATION_FORMAT = dwarf; 186 | ENABLE_STRICT_OBJC_MSGSEND = YES; 187 | ENABLE_TESTABILITY = YES; 188 | GCC_C_LANGUAGE_STANDARD = gnu11; 189 | GCC_DYNAMIC_NO_PIC = NO; 190 | GCC_NO_COMMON_BLOCKS = YES; 191 | GCC_OPTIMIZATION_LEVEL = 0; 192 | GCC_PREPROCESSOR_DEFINITIONS = ( 193 | "DEBUG=1", 194 | "$(inherited)", 195 | ); 196 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 197 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 198 | GCC_WARN_UNDECLARED_SELECTOR = YES; 199 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 200 | GCC_WARN_UNUSED_FUNCTION = YES; 201 | GCC_WARN_UNUSED_VARIABLE = YES; 202 | MACOSX_DEPLOYMENT_TARGET = 11.1; 203 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 204 | MTL_FAST_MATH = YES; 205 | ONLY_ACTIVE_ARCH = YES; 206 | SDKROOT = macosx; 207 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 208 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 209 | }; 210 | name = Debug; 211 | }; 212 | 86DE4D0C25ABAAAC00AEA5A5 /* Release */ = { 213 | isa = XCBuildConfiguration; 214 | buildSettings = { 215 | ALWAYS_SEARCH_USER_PATHS = NO; 216 | CLANG_ANALYZER_NONNULL = YES; 217 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 218 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 219 | CLANG_CXX_LIBRARY = "libc++"; 220 | CLANG_ENABLE_MODULES = YES; 221 | CLANG_ENABLE_OBJC_ARC = YES; 222 | CLANG_ENABLE_OBJC_WEAK = YES; 223 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 224 | CLANG_WARN_BOOL_CONVERSION = YES; 225 | CLANG_WARN_COMMA = YES; 226 | CLANG_WARN_CONSTANT_CONVERSION = YES; 227 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 228 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 229 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 230 | CLANG_WARN_EMPTY_BODY = YES; 231 | CLANG_WARN_ENUM_CONVERSION = YES; 232 | CLANG_WARN_INFINITE_RECURSION = YES; 233 | CLANG_WARN_INT_CONVERSION = YES; 234 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 235 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 236 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 237 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 238 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 239 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 240 | CLANG_WARN_STRICT_PROTOTYPES = YES; 241 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 242 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 243 | CLANG_WARN_UNREACHABLE_CODE = YES; 244 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 245 | COPY_PHASE_STRIP = NO; 246 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 247 | ENABLE_NS_ASSERTIONS = NO; 248 | ENABLE_STRICT_OBJC_MSGSEND = YES; 249 | GCC_C_LANGUAGE_STANDARD = gnu11; 250 | GCC_NO_COMMON_BLOCKS = YES; 251 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 252 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 253 | GCC_WARN_UNDECLARED_SELECTOR = YES; 254 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 255 | GCC_WARN_UNUSED_FUNCTION = YES; 256 | GCC_WARN_UNUSED_VARIABLE = YES; 257 | MACOSX_DEPLOYMENT_TARGET = 11.1; 258 | MTL_ENABLE_DEBUG_INFO = NO; 259 | MTL_FAST_MATH = YES; 260 | SDKROOT = macosx; 261 | SWIFT_COMPILATION_MODE = wholemodule; 262 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 263 | }; 264 | name = Release; 265 | }; 266 | 86DE4D0E25ABAAAC00AEA5A5 /* Debug */ = { 267 | isa = XCBuildConfiguration; 268 | buildSettings = { 269 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 270 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 271 | CODE_SIGN_ENTITLEMENTS = Finder/Finder.entitlements; 272 | CODE_SIGN_STYLE = Automatic; 273 | COMBINE_HIDPI_IMAGES = YES; 274 | DEVELOPMENT_ASSET_PATHS = "\"Finder/Preview Content\""; 275 | ENABLE_PREVIEWS = YES; 276 | INFOPLIST_FILE = Finder/Info.plist; 277 | LD_RUNPATH_SEARCH_PATHS = ( 278 | "$(inherited)", 279 | "@executable_path/../Frameworks", 280 | ); 281 | MACOSX_DEPLOYMENT_TARGET = 11.0; 282 | PRODUCT_BUNDLE_IDENTIFIER = demo.Finder; 283 | PRODUCT_NAME = "$(TARGET_NAME)"; 284 | SWIFT_VERSION = 5.0; 285 | }; 286 | name = Debug; 287 | }; 288 | 86DE4D0F25ABAAAC00AEA5A5 /* Release */ = { 289 | isa = XCBuildConfiguration; 290 | buildSettings = { 291 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 292 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 293 | CODE_SIGN_ENTITLEMENTS = Finder/Finder.entitlements; 294 | CODE_SIGN_STYLE = Automatic; 295 | COMBINE_HIDPI_IMAGES = YES; 296 | DEVELOPMENT_ASSET_PATHS = "\"Finder/Preview Content\""; 297 | ENABLE_PREVIEWS = YES; 298 | INFOPLIST_FILE = Finder/Info.plist; 299 | LD_RUNPATH_SEARCH_PATHS = ( 300 | "$(inherited)", 301 | "@executable_path/../Frameworks", 302 | ); 303 | MACOSX_DEPLOYMENT_TARGET = 11.0; 304 | PRODUCT_BUNDLE_IDENTIFIER = demo.Finder; 305 | PRODUCT_NAME = "$(TARGET_NAME)"; 306 | SWIFT_VERSION = 5.0; 307 | }; 308 | name = Release; 309 | }; 310 | /* End XCBuildConfiguration section */ 311 | 312 | /* Begin XCConfigurationList section */ 313 | 86DE4CF825ABAAAA00AEA5A5 /* Build configuration list for PBXProject "Finder" */ = { 314 | isa = XCConfigurationList; 315 | buildConfigurations = ( 316 | 86DE4D0B25ABAAAC00AEA5A5 /* Debug */, 317 | 86DE4D0C25ABAAAC00AEA5A5 /* Release */, 318 | ); 319 | defaultConfigurationIsVisible = 0; 320 | defaultConfigurationName = Release; 321 | }; 322 | 86DE4D0D25ABAAAC00AEA5A5 /* Build configuration list for PBXNativeTarget "Finder" */ = { 323 | isa = XCConfigurationList; 324 | buildConfigurations = ( 325 | 86DE4D0E25ABAAAC00AEA5A5 /* Debug */, 326 | 86DE4D0F25ABAAAC00AEA5A5 /* Release */, 327 | ); 328 | defaultConfigurationIsVisible = 0; 329 | defaultConfigurationName = Release; 330 | }; 331 | /* End XCConfigurationList section */ 332 | }; 333 | rootObject = 86DE4CF525ABAAAA00AEA5A5 /* Project object */; 334 | } 335 | -------------------------------------------------------------------------------- /Finder/Finder.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Finder/Finder.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Finder/Finder.xcodeproj/project.xcworkspace/xcuserdata/jordansinger.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jordansinger/finder-macos-swiftui/5473e14dc8272ccc6c9f0c77ab2ce9496751ccbe/Finder/Finder.xcodeproj/project.xcworkspace/xcuserdata/jordansinger.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /Finder/Finder.xcodeproj/xcuserdata/jordansinger.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Finder.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Finder/Finder/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Finder/Finder/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "scale" : "1x", 6 | "size" : "16x16" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "scale" : "2x", 11 | "size" : "16x16" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "scale" : "1x", 16 | "size" : "32x32" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "scale" : "2x", 21 | "size" : "32x32" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "scale" : "1x", 26 | "size" : "128x128" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "scale" : "2x", 31 | "size" : "128x128" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "scale" : "1x", 36 | "size" : "256x256" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "scale" : "2x", 41 | "size" : "256x256" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "scale" : "1x", 46 | "size" : "512x512" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "scale" : "2x", 51 | "size" : "512x512" 52 | } 53 | ], 54 | "info" : { 55 | "author" : "xcode", 56 | "version" : 1 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Finder/Finder/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Finder/Finder/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // Finder 4 | // 5 | // Created by Jordan Singer on 1/10/21. 6 | // 7 | 8 | import SwiftUI 9 | 10 | struct ContentView: View { 11 | @State var selection: Set = [0] 12 | var body: some View { 13 | NavigationView { 14 | List(selection: self.$selection) { 15 | Section(header: Text("Favorites")) { 16 | Label("Desktop", systemImage: "menubar.dock.rectangle").tag(0) 17 | Label("Home", systemImage: "house") 18 | Label("Downloads", systemImage: "arrow.down.circle") 19 | Label("Recents", systemImage: "clock") 20 | Label("AirDrop", systemImage: "airplayaudio") 21 | Label("Folder", systemImage: "folder") 22 | Label("Documents", systemImage: "doc") 23 | } 24 | 25 | Section(header: Text("iCloud")) { 26 | Label("Desktop", systemImage: "icloud") 27 | Label("Documents", systemImage: "doc") 28 | Label("Desktop", systemImage: "menubar.dock.rectangle") 29 | } 30 | } 31 | .listStyle(SidebarListStyle()) 32 | .frame(minWidth: 150, idealWidth: 150, maxWidth: 200, maxHeight: .infinity) 33 | 34 | Finder() 35 | .frame(maxWidth: .infinity, maxHeight: .infinity) 36 | } 37 | } 38 | } 39 | 40 | struct Finder: View { 41 | let folders = [ 42 | FinderFolder(label: "Applications", icon: "folder.fill"), 43 | FinderFolder(label: "Desktop", icon: "macwindow") 44 | ] 45 | let columns = [ 46 | GridItem(.flexible()), 47 | GridItem(.flexible()), 48 | GridItem(.flexible()) 49 | ] 50 | 51 | var body: some View { 52 | VStack(spacing: 0) { 53 | Divider() 54 | ScrollView { 55 | LazyVGrid(columns: columns, spacing: 40) { 56 | FinderFolder(label: "Applications", icon: "folder.fill") 57 | FinderFolder(label: "Desktop", icon: "macwindow") 58 | FinderFolder(label: "Documents", icon: "folder.fill") 59 | FinderFolder(label: "Downloads", icon: "arrow.down.circle.fill") 60 | FinderFolder(label: "Library", icon: "folder.fill") 61 | FinderFolder(label: "Music", icon: "music.note") 62 | FinderFolder(label: "Movies", icon: "video.fill") 63 | FinderFolder(label: "Pictures", icon: "photo.fill") 64 | FinderFolder(label: "Public", icon: "folder.fill") 65 | } 66 | .padding() 67 | } 68 | } 69 | .background(Color.white) 70 | .navigationTitle("Desktop") 71 | .toolbar { 72 | ToolbarItem(placement: .navigation) { 73 | Button(action: {}) { 74 | Image(systemName: "chevron.backward") 75 | } 76 | } 77 | 78 | ToolbarItem(placement: .navigation) { 79 | Button(action: {}) { 80 | Image(systemName: "chevron.forward") 81 | } 82 | .disabled(true) 83 | } 84 | 85 | ToolbarItem(placement: .status) { 86 | Button(action: {}) { 87 | Image(systemName: "square.grid.2x2") 88 | } 89 | } 90 | 91 | ToolbarItem(placement: .status) { 92 | Button(action: {}) { 93 | Image(systemName: "square.and.arrow.up") 94 | } 95 | } 96 | 97 | ToolbarItem(placement: .status) { 98 | Button(action: {}) { 99 | Image(systemName: "ellipsis.circle") 100 | } 101 | } 102 | 103 | ToolbarItem(placement: .status) { 104 | Button(action: {}) { 105 | Image(systemName: "magnifyingglass") 106 | } 107 | } 108 | 109 | } 110 | } 111 | } 112 | 113 | struct FinderFolder: View { 114 | @State var label: String 115 | @State var icon: String 116 | 117 | var body: some View { 118 | VStack(spacing: 12) { 119 | Image(systemName: icon) 120 | .font(.system(size: 40)) 121 | .foregroundColor(Color(NSColor.systemBlue.withAlphaComponent(0.5))) 122 | Text(label) 123 | .font(.body) 124 | .foregroundColor(Color(NSColor.labelColor)) 125 | } 126 | .frame(width: 92) 127 | } 128 | } 129 | 130 | 131 | struct ContentView_Previews: PreviewProvider { 132 | static var previews: some View { 133 | ContentView() 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /Finder/Finder/Finder.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.files.user-selected.read-only 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Finder/Finder/FinderApp.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FinderApp.swift 3 | // Finder 4 | // 5 | // Created by Jordan Singer on 1/10/21. 6 | // 7 | 8 | import SwiftUI 9 | 10 | @main 11 | struct FinderApp: App { 12 | var body: some Scene { 13 | WindowGroup { 14 | ContentView() 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Finder/Finder/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSMinimumSystemVersion 22 | $(MACOSX_DEPLOYMENT_TARGET) 23 | 24 | 25 | -------------------------------------------------------------------------------- /Finder/Finder/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Finder built in SwiftUI for macOS 2 | 3 | ![finder1](https://user-images.githubusercontent.com/110813/104136125-48e80e00-5362-11eb-95d2-8f65812b04f9.png) 4 | --------------------------------------------------------------------------------