├── Assets.xcassets ├── Contents.json ├── chart.imageset │ ├── chart.png │ └── Contents.json ├── cloud.imageset │ ├── Cloud.png │ └── Contents.json ├── dollar.imageset │ ├── dollar.png │ └── Contents.json ├── App1.appiconset │ ├── icon-1024.png │ ├── icon-20.png │ ├── icon-29.png │ ├── icon-40.png │ ├── icon-76.png │ ├── icon-20@2x.png │ ├── icon-20@3x.png │ ├── icon-29@2x.png │ ├── icon-29@3x.png │ ├── icon-40@2x.png │ ├── icon-40@3x.png │ ├── icon-60@2x.png │ ├── icon-60@3x.png │ ├── icon-76@2x.png │ ├── icon-20@2x-1.png │ ├── icon-29@2x-1.png │ ├── icon-40@2x-1.png │ ├── icon-83.5@2x.png │ └── Contents.json ├── App2.appiconset │ ├── icon-1024.png │ ├── icon-20.png │ ├── icon-29.png │ ├── icon-40.png │ ├── icon-76.png │ ├── icon-20@2x.png │ ├── icon-20@3x.png │ ├── icon-29@2x.png │ ├── icon-29@3x.png │ ├── icon-40@2x.png │ ├── icon-40@3x.png │ ├── icon-60@2x.png │ ├── icon-60@3x.png │ ├── icon-76@2x.png │ ├── icon-20@2x-1.png │ ├── icon-29@2x-1.png │ ├── icon-40@2x-1.png │ ├── icon-83.5@2x.png │ └── Contents.json └── comments.imageset │ ├── comments.png │ └── Contents.json ├── README.md ├── LICENSE ├── AppDelegate.swift ├── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard ├── App1 └── Settings.plist ├── App2 └── Settings.plist ├── SceneDelegate.swift ├── .gitignore ├── Info-App1.plist ├── Info-App2.plist └── TabViewController.swift /Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Assets.xcassets/chart.imageset/chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/chart.imageset/chart.png -------------------------------------------------------------------------------- /Assets.xcassets/cloud.imageset/Cloud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/cloud.imageset/Cloud.png -------------------------------------------------------------------------------- /Assets.xcassets/dollar.imageset/dollar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/dollar.imageset/dollar.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-1024.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-20.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-29.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-40.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-76.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-1024.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-20.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-29.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-40.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-76.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BespokeApp 2 | BespokeApp is a simple open source iOS app that lets you group together realted websites that you frequently visit. 3 | -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-20@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-20@3x.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-20@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-20@3x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/comments.imageset/comments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/comments.imageset/comments.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-20@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-20@2x-1.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-29@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-29@2x-1.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-40@2x-1.png -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App1.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-20@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-20@2x-1.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-29@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-29@2x-1.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-40@2x-1.png -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tylerhall/BespokeApp/master/Assets.xcassets/App2.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /Assets.xcassets/chart.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "filename" : "chart.png", 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets.xcassets/cloud.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "filename" : "Cloud.png", 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets.xcassets/comments.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "filename" : "comments.png", 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets.xcassets/dollar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "filename" : "dollar.png", 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "author" : "xcode", 19 | "version" : 1 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Tyler Hall 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Bespoke 4 | // 5 | // Created by Tyler Hall on 6/25/20. 6 | // Copyright © 2020 Tyler Hall. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | // MARK: UISceneSession Lifecycle 22 | 23 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 24 | // Called when a new scene session is being created. 25 | // Use this method to select a configuration to create the new scene with. 26 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 27 | } 28 | 29 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 30 | // Called when the user discards a scene session. 31 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 32 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 33 | } 34 | 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /App1/Settings.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Tabs 6 | 7 | 8 | Title 9 | Apple 10 | Icon 11 | chart 12 | URLs 13 | 14 | 15 | Title 16 | Apple 17 | URL 18 | https://apple.com 19 | 20 | 21 | 22 | 23 | Title 24 | Google 25 | Icon 26 | cloud 27 | URLs 28 | 29 | 30 | Title 31 | Google 32 | URL 33 | https://google.com 34 | 35 | 36 | 37 | 38 | Title 39 | Tyler 40 | Icon 41 | comments 42 | URLs 43 | 44 | 45 | Title 46 | tyler.io 47 | URL 48 | https://tyler.io 49 | 50 | 51 | 52 | 53 | Title 54 | Misc 55 | Icon 56 | dollar 57 | URLs 58 | 59 | 60 | Title 61 | Click On Tyler 62 | URL 63 | https://clickontyler.com 64 | 65 | 66 | Title 67 | NodePing 68 | URL 69 | https://nodeping.com/ 70 | 71 | 72 | Title 73 | Setapp 74 | URL 75 | https://setapp.com/ 76 | 77 | 78 | Title 79 | Linode 80 | URL 81 | https://cloud.linode.com/ 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /App2/Settings.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Tabs 6 | 7 | 8 | Title 9 | Apple 10 | Icon 11 | chart 12 | URLs 13 | 14 | 15 | Title 16 | Apple 17 | URL 18 | https://apple.com 19 | 20 | 21 | 22 | 23 | Title 24 | Google 25 | Icon 26 | cloud 27 | URLs 28 | 29 | 30 | Title 31 | Google 32 | URL 33 | https://google.com 34 | 35 | 36 | 37 | 38 | Title 39 | Tyler 40 | Icon 41 | comments 42 | URLs 43 | 44 | 45 | Title 46 | tyler.io 47 | URL 48 | https://tyler.io 49 | 50 | 51 | 52 | 53 | Title 54 | Misc 55 | Icon 56 | dollar 57 | URLs 58 | 59 | 60 | Title 61 | Click On Tyler 62 | URL 63 | https://clickontyler.com 64 | 65 | 66 | Title 67 | NodePing 68 | URL 69 | https://nodeping.com/ 70 | 71 | 72 | Title 73 | Setapp 74 | URL 75 | https://setapp.com/ 76 | 77 | 78 | Title 79 | Linode 80 | URL 81 | https://cloud.linode.com/ 82 | 83 | 84 | 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // Bespoke 4 | // 5 | // Created by Tyler Hall on 6/25/20. 6 | // Copyright © 2020 Tyler Hall. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 12 | 13 | var window: UIWindow? 14 | 15 | 16 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 17 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 18 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 19 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 20 | guard let _ = (scene as? UIWindowScene) else { return } 21 | } 22 | 23 | func sceneDidDisconnect(_ scene: UIScene) { 24 | // Called as the scene is being released by the system. 25 | // This occurs shortly after the scene enters the background, or when its session is discarded. 26 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 27 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 28 | } 29 | 30 | func sceneDidBecomeActive(_ scene: UIScene) { 31 | // Called when the scene has moved from an inactive state to an active state. 32 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 33 | } 34 | 35 | func sceneWillResignActive(_ scene: UIScene) { 36 | // Called when the scene will move from an active state to an inactive state. 37 | // This may occur due to temporary interruptions (ex. an incoming phone call). 38 | } 39 | 40 | func sceneWillEnterForeground(_ scene: UIScene) { 41 | // Called as the scene transitions from the background to the foreground. 42 | // Use this method to undo the changes made on entering the background. 43 | } 44 | 45 | func sceneDidEnterBackground(_ scene: UIScene) { 46 | // Called as the scene transitions from the foreground to the background. 47 | // Use this method to save data, release shared resources, and store enough scene-specific state information 48 | // to restore the scene back to its current state. 49 | } 50 | 51 | 52 | } 53 | 54 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## User settings 6 | xcuserdata/ 7 | 8 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 9 | *.xcscmblueprint 10 | *.xccheckout 11 | 12 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 13 | build/ 14 | DerivedData/ 15 | *.moved-aside 16 | *.pbxuser 17 | !default.pbxuser 18 | *.mode1v3 19 | !default.mode1v3 20 | *.mode2v3 21 | !default.mode2v3 22 | *.perspectivev3 23 | !default.perspectivev3 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | 28 | ## App packaging 29 | *.ipa 30 | *.dSYM.zip 31 | *.dSYM 32 | 33 | ## Playgrounds 34 | timeline.xctimeline 35 | playground.xcworkspace 36 | 37 | # Swift Package Manager 38 | # 39 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 40 | # Packages/ 41 | # Package.pins 42 | # Package.resolved 43 | # *.xcodeproj 44 | # 45 | # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata 46 | # hence it is not needed unless you have added a package configuration file to your project 47 | # .swiftpm 48 | 49 | .build/ 50 | 51 | # CocoaPods 52 | # 53 | # We recommend against adding the Pods directory to your .gitignore. However 54 | # you should judge for yourself, the pros and cons are mentioned at: 55 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 56 | # 57 | # Pods/ 58 | # 59 | # Add this line if you want to avoid checking in source code from the Xcode workspace 60 | # *.xcworkspace 61 | 62 | # Carthage 63 | # 64 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 65 | # Carthage/Checkouts 66 | 67 | Carthage/Build/ 68 | 69 | # Accio dependency management 70 | Dependencies/ 71 | .accio/ 72 | 73 | # fastlane 74 | # 75 | # It is recommended to not store the screenshots in the git repo. 76 | # Instead, use fastlane to re-generate the screenshots whenever they are needed. 77 | # For more information about the recommended setup visit: 78 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 79 | 80 | fastlane/report.xml 81 | fastlane/Preview.html 82 | fastlane/screenshots/**/*.png 83 | fastlane/test_output 84 | 85 | # Code Injection 86 | # 87 | # After new code Injection tools there's a generated folder /iOSInjectionProject 88 | # https://github.com/johnno1962/injectionforxcode 89 | 90 | iOSInjectionProject/ 91 | -------------------------------------------------------------------------------- /Info-App1.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 | LSRequiresIPhoneOS 22 | 23 | NSAppTransportSecurity 24 | 25 | NSAllowsArbitraryLoads 26 | 27 | 28 | UIApplicationSceneManifest 29 | 30 | UIApplicationSupportsMultipleScenes 31 | 32 | UISceneConfigurations 33 | 34 | UIWindowSceneSessionRoleApplication 35 | 36 | 37 | UISceneConfigurationName 38 | Default Configuration 39 | UISceneDelegateClassName 40 | $(PRODUCT_MODULE_NAME).SceneDelegate 41 | UISceneStoryboardFile 42 | Main 43 | 44 | 45 | 46 | 47 | UILaunchStoryboardName 48 | LaunchScreen 49 | UIMainStoryboardFile 50 | Main 51 | UIRequiredDeviceCapabilities 52 | 53 | armv7 54 | 55 | UIStatusBarTintParameters 56 | 57 | UINavigationBar 58 | 59 | Style 60 | UIBarStyleDefault 61 | Translucent 62 | 63 | 64 | 65 | UISupportedInterfaceOrientations 66 | 67 | UIInterfaceOrientationPortrait 68 | UIInterfaceOrientationLandscapeLeft 69 | UIInterfaceOrientationLandscapeRight 70 | UIInterfaceOrientationPortraitUpsideDown 71 | 72 | UISupportedInterfaceOrientations~ipad 73 | 74 | UIInterfaceOrientationPortrait 75 | UIInterfaceOrientationPortraitUpsideDown 76 | UIInterfaceOrientationLandscapeLeft 77 | UIInterfaceOrientationLandscapeRight 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Info-App2.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 | LSRequiresIPhoneOS 22 | 23 | NSAppTransportSecurity 24 | 25 | NSAllowsArbitraryLoads 26 | 27 | 28 | UIApplicationSceneManifest 29 | 30 | UIApplicationSupportsMultipleScenes 31 | 32 | UISceneConfigurations 33 | 34 | UIWindowSceneSessionRoleApplication 35 | 36 | 37 | UISceneConfigurationName 38 | Default Configuration 39 | UISceneDelegateClassName 40 | $(PRODUCT_MODULE_NAME).SceneDelegate 41 | UISceneStoryboardFile 42 | Main 43 | 44 | 45 | 46 | 47 | UILaunchStoryboardName 48 | LaunchScreen 49 | UIMainStoryboardFile 50 | Main 51 | UIRequiredDeviceCapabilities 52 | 53 | armv7 54 | 55 | UIStatusBarTintParameters 56 | 57 | UINavigationBar 58 | 59 | Style 60 | UIBarStyleDefault 61 | Translucent 62 | 63 | 64 | 65 | UISupportedInterfaceOrientations 66 | 67 | UIInterfaceOrientationPortrait 68 | UIInterfaceOrientationLandscapeLeft 69 | UIInterfaceOrientationLandscapeRight 70 | UIInterfaceOrientationPortraitUpsideDown 71 | 72 | UISupportedInterfaceOrientations~ipad 73 | 74 | UIInterfaceOrientationPortrait 75 | UIInterfaceOrientationPortraitUpsideDown 76 | UIInterfaceOrientationLandscapeLeft 77 | UIInterfaceOrientationLandscapeRight 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Assets.xcassets/App1.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "icon-20@2x.png", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "icon-20@3x.png", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "icon-29@2x.png", 17 | "idiom" : "iphone", 18 | "scale" : "2x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "icon-29@3x.png", 23 | "idiom" : "iphone", 24 | "scale" : "3x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "icon-40@2x.png", 29 | "idiom" : "iphone", 30 | "scale" : "2x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "filename" : "icon-40@3x.png", 35 | "idiom" : "iphone", 36 | "scale" : "3x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "icon-60@2x.png", 41 | "idiom" : "iphone", 42 | "scale" : "2x", 43 | "size" : "60x60" 44 | }, 45 | { 46 | "filename" : "icon-60@3x.png", 47 | "idiom" : "iphone", 48 | "scale" : "3x", 49 | "size" : "60x60" 50 | }, 51 | { 52 | "filename" : "icon-20.png", 53 | "idiom" : "ipad", 54 | "scale" : "1x", 55 | "size" : "20x20" 56 | }, 57 | { 58 | "filename" : "icon-20@2x-1.png", 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "20x20" 62 | }, 63 | { 64 | "filename" : "icon-29.png", 65 | "idiom" : "ipad", 66 | "scale" : "1x", 67 | "size" : "29x29" 68 | }, 69 | { 70 | "filename" : "icon-29@2x-1.png", 71 | "idiom" : "ipad", 72 | "scale" : "2x", 73 | "size" : "29x29" 74 | }, 75 | { 76 | "filename" : "icon-40.png", 77 | "idiom" : "ipad", 78 | "scale" : "1x", 79 | "size" : "40x40" 80 | }, 81 | { 82 | "filename" : "icon-40@2x-1.png", 83 | "idiom" : "ipad", 84 | "scale" : "2x", 85 | "size" : "40x40" 86 | }, 87 | { 88 | "filename" : "icon-76.png", 89 | "idiom" : "ipad", 90 | "scale" : "1x", 91 | "size" : "76x76" 92 | }, 93 | { 94 | "filename" : "icon-76@2x.png", 95 | "idiom" : "ipad", 96 | "scale" : "2x", 97 | "size" : "76x76" 98 | }, 99 | { 100 | "filename" : "icon-83.5@2x.png", 101 | "idiom" : "ipad", 102 | "scale" : "2x", 103 | "size" : "83.5x83.5" 104 | }, 105 | { 106 | "filename" : "icon-1024.png", 107 | "idiom" : "ios-marketing", 108 | "scale" : "1x", 109 | "size" : "1024x1024" 110 | } 111 | ], 112 | "info" : { 113 | "author" : "xcode", 114 | "version" : 1 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /Assets.xcassets/App2.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "filename" : "icon-20@2x.png", 5 | "idiom" : "iphone", 6 | "scale" : "2x", 7 | "size" : "20x20" 8 | }, 9 | { 10 | "filename" : "icon-20@3x.png", 11 | "idiom" : "iphone", 12 | "scale" : "3x", 13 | "size" : "20x20" 14 | }, 15 | { 16 | "filename" : "icon-29@2x.png", 17 | "idiom" : "iphone", 18 | "scale" : "2x", 19 | "size" : "29x29" 20 | }, 21 | { 22 | "filename" : "icon-29@3x.png", 23 | "idiom" : "iphone", 24 | "scale" : "3x", 25 | "size" : "29x29" 26 | }, 27 | { 28 | "filename" : "icon-40@2x.png", 29 | "idiom" : "iphone", 30 | "scale" : "2x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "filename" : "icon-40@3x.png", 35 | "idiom" : "iphone", 36 | "scale" : "3x", 37 | "size" : "40x40" 38 | }, 39 | { 40 | "filename" : "icon-60@2x.png", 41 | "idiom" : "iphone", 42 | "scale" : "2x", 43 | "size" : "60x60" 44 | }, 45 | { 46 | "filename" : "icon-60@3x.png", 47 | "idiom" : "iphone", 48 | "scale" : "3x", 49 | "size" : "60x60" 50 | }, 51 | { 52 | "filename" : "icon-20.png", 53 | "idiom" : "ipad", 54 | "scale" : "1x", 55 | "size" : "20x20" 56 | }, 57 | { 58 | "filename" : "icon-20@2x-1.png", 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "20x20" 62 | }, 63 | { 64 | "filename" : "icon-29.png", 65 | "idiom" : "ipad", 66 | "scale" : "1x", 67 | "size" : "29x29" 68 | }, 69 | { 70 | "filename" : "icon-29@2x-1.png", 71 | "idiom" : "ipad", 72 | "scale" : "2x", 73 | "size" : "29x29" 74 | }, 75 | { 76 | "filename" : "icon-40.png", 77 | "idiom" : "ipad", 78 | "scale" : "1x", 79 | "size" : "40x40" 80 | }, 81 | { 82 | "filename" : "icon-40@2x-1.png", 83 | "idiom" : "ipad", 84 | "scale" : "2x", 85 | "size" : "40x40" 86 | }, 87 | { 88 | "filename" : "icon-76.png", 89 | "idiom" : "ipad", 90 | "scale" : "1x", 91 | "size" : "76x76" 92 | }, 93 | { 94 | "filename" : "icon-76@2x.png", 95 | "idiom" : "ipad", 96 | "scale" : "2x", 97 | "size" : "76x76" 98 | }, 99 | { 100 | "filename" : "icon-83.5@2x.png", 101 | "idiom" : "ipad", 102 | "scale" : "2x", 103 | "size" : "83.5x83.5" 104 | }, 105 | { 106 | "filename" : "icon-1024.png", 107 | "idiom" : "ios-marketing", 108 | "scale" : "1x", 109 | "size" : "1024x1024" 110 | } 111 | ], 112 | "info" : { 113 | "author" : "xcode", 114 | "version" : 1 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 40 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /TabViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TabViewController.swift 3 | // HTPC 4 | // 5 | // Created by Tyler Hall on 8/25/19. 6 | // Copyright © 2019 tyler,io. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SafariServices 11 | 12 | class Tab { 13 | var title = "" 14 | var image: UIImage? 15 | 16 | struct Website { 17 | var title: String 18 | var url: URL 19 | var viewController: UIViewController? 20 | var isActive = false 21 | } 22 | 23 | var websites = [Website]() 24 | 25 | func makeActive(website: Website) { 26 | for i in 0.. 0 { 92 | tabs.append(tab) 93 | tagIndex += 1 94 | } 95 | } 96 | } 97 | 98 | 99 | @objc func didLongPress(_ gestureRecognizer: UILongPressGestureRecognizer) { 100 | guard gestureRecognizer.state == UIGestureRecognizer.State.began else { return } 101 | guard let tagIndex = tabBar.selectedItem?.tag else { return } 102 | 103 | let tab = tabs[tagIndex] 104 | 105 | let ac = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) 106 | 107 | for website in tab.websites { 108 | let item = UIAlertAction(title: website.title, style: .default) { (action) in 109 | if let webViewController = website.viewController { 110 | tab.makeActive(website: website) 111 | self.viewControllers?[tagIndex] = webViewController 112 | } 113 | } 114 | ac.addAction(item) 115 | } 116 | 117 | let item = UIAlertAction(title: "Enter URL", style: .default) { (action) in 118 | let inputAC = UIAlertController(title: "Enter URL", message: nil, preferredStyle: .alert) 119 | inputAC.addTextField { (textField) in 120 | 121 | } 122 | let go = UIAlertAction(title: "Go", style: .default) { (action) in 123 | guard let urlStr = inputAC.textFields?.first?.text, let url = URL(string: urlStr) else { return } 124 | 125 | if var website = tab.websites.first(where: { (w) -> Bool in 126 | return w.isActive 127 | }) { 128 | let vc = SFSafariViewController(url: url) 129 | vc.tabBarItem = website.viewController?.tabBarItem 130 | website.viewController = vc 131 | self.viewControllers?[tagIndex] = vc 132 | } 133 | } 134 | inputAC.addAction(go) 135 | 136 | let cancel = UIAlertAction(title: "Cancel", style: .cancel) { (action) in 137 | 138 | } 139 | inputAC.addAction(cancel) 140 | DispatchQueue.main.async { 141 | self.present(inputAC, animated: true) 142 | } 143 | } 144 | ac.addAction(item) 145 | 146 | let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil) 147 | ac.addAction(cancelAction) 148 | 149 | present(ac, animated: true) 150 | } 151 | } 152 | --------------------------------------------------------------------------------