├── README.md ├── VisualRichLink.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ └── alfianlosari.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── alfianlosari.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist ├── VisualRichLink ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Cells │ ├── LinkViewTableViewCell.swift │ └── SubtitleTableViewCell.swift ├── Controllers │ ├── LinkViewController.swift │ └── ListViewController.swift ├── Info.plist ├── Models │ └── PageLink.swift └── SceneDelegate.swift └── promo.png /README.md: -------------------------------------------------------------------------------- 1 | # Visual Rich Link iOS 13 Example App 2 | 3 | ![Alt text](./promo.png?raw=true "Visual Rich Link") 4 | 5 | Sample app showcasing Visual Rich Link embedding in iOS 13 App 6 | 7 | ## Getting Started 8 | 9 | - Clone 10 | - Install Xcode 11 11 | - Build and Run -------------------------------------------------------------------------------- /VisualRichLink.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 8B85202922DE1F250013C21E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B85202822DE1F250013C21E /* AppDelegate.swift */; }; 11 | 8B85202B22DE1F250013C21E /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B85202A22DE1F250013C21E /* SceneDelegate.swift */; }; 12 | 8B85202D22DE1F250013C21E /* LinkViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B85202C22DE1F250013C21E /* LinkViewController.swift */; }; 13 | 8B85203022DE1F250013C21E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8B85202E22DE1F250013C21E /* Main.storyboard */; }; 14 | 8B85203222DE1F270013C21E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8B85203122DE1F270013C21E /* Assets.xcassets */; }; 15 | 8B85203522DE1F270013C21E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8B85203322DE1F270013C21E /* LaunchScreen.storyboard */; }; 16 | 8B85203E22DE1FD60013C21E /* LinkViewTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B85203C22DE1FD60013C21E /* LinkViewTableViewCell.swift */; }; 17 | 8B85204122DF79C90013C21E /* PageLink.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B85204022DF79C90013C21E /* PageLink.swift */; }; 18 | 8B85204322DF7A330013C21E /* ListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B85204222DF7A330013C21E /* ListViewController.swift */; }; 19 | 8B85204822E0028D0013C21E /* SubtitleTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B85204722E0028D0013C21E /* SubtitleTableViewCell.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | 8B85202522DE1F250013C21E /* VisualRichLink.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = VisualRichLink.app; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | 8B85202822DE1F250013C21E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 25 | 8B85202A22DE1F250013C21E /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 26 | 8B85202C22DE1F250013C21E /* LinkViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinkViewController.swift; sourceTree = ""; }; 27 | 8B85202F22DE1F250013C21E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 28 | 8B85203122DE1F270013C21E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | 8B85203422DE1F270013C21E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 30 | 8B85203622DE1F270013C21E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | 8B85203C22DE1FD60013C21E /* LinkViewTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinkViewTableViewCell.swift; sourceTree = ""; }; 32 | 8B85204022DF79C90013C21E /* PageLink.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PageLink.swift; sourceTree = ""; }; 33 | 8B85204222DF7A330013C21E /* ListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListViewController.swift; sourceTree = ""; }; 34 | 8B85204722E0028D0013C21E /* SubtitleTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SubtitleTableViewCell.swift; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 8B85202222DE1F250013C21E /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | ); 43 | runOnlyForDeploymentPostprocessing = 0; 44 | }; 45 | /* End PBXFrameworksBuildPhase section */ 46 | 47 | /* Begin PBXGroup section */ 48 | 8B85201C22DE1F250013C21E = { 49 | isa = PBXGroup; 50 | children = ( 51 | 8B85202722DE1F250013C21E /* VisualRichLink */, 52 | 8B85202622DE1F250013C21E /* Products */, 53 | ); 54 | sourceTree = ""; 55 | }; 56 | 8B85202622DE1F250013C21E /* Products */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | 8B85202522DE1F250013C21E /* VisualRichLink.app */, 60 | ); 61 | name = Products; 62 | sourceTree = ""; 63 | }; 64 | 8B85202722DE1F250013C21E /* VisualRichLink */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 8B85204622E002640013C21E /* Models */, 68 | 8B85204522E0025D0013C21E /* Controllers */, 69 | 8B85204422E002550013C21E /* Cells */, 70 | 8B85202822DE1F250013C21E /* AppDelegate.swift */, 71 | 8B85202A22DE1F250013C21E /* SceneDelegate.swift */, 72 | 8B85203122DE1F270013C21E /* Assets.xcassets */, 73 | 8B85202E22DE1F250013C21E /* Main.storyboard */, 74 | 8B85203322DE1F270013C21E /* LaunchScreen.storyboard */, 75 | 8B85203622DE1F270013C21E /* Info.plist */, 76 | ); 77 | path = VisualRichLink; 78 | sourceTree = ""; 79 | }; 80 | 8B85204422E002550013C21E /* Cells */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 8B85203C22DE1FD60013C21E /* LinkViewTableViewCell.swift */, 84 | 8B85204722E0028D0013C21E /* SubtitleTableViewCell.swift */, 85 | ); 86 | path = Cells; 87 | sourceTree = ""; 88 | }; 89 | 8B85204522E0025D0013C21E /* Controllers */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | 8B85204222DF7A330013C21E /* ListViewController.swift */, 93 | 8B85202C22DE1F250013C21E /* LinkViewController.swift */, 94 | ); 95 | path = Controllers; 96 | sourceTree = ""; 97 | }; 98 | 8B85204622E002640013C21E /* Models */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 8B85204022DF79C90013C21E /* PageLink.swift */, 102 | ); 103 | path = Models; 104 | sourceTree = ""; 105 | }; 106 | /* End PBXGroup section */ 107 | 108 | /* Begin PBXNativeTarget section */ 109 | 8B85202422DE1F250013C21E /* VisualRichLink */ = { 110 | isa = PBXNativeTarget; 111 | buildConfigurationList = 8B85203922DE1F270013C21E /* Build configuration list for PBXNativeTarget "VisualRichLink" */; 112 | buildPhases = ( 113 | 8B85202122DE1F250013C21E /* Sources */, 114 | 8B85202222DE1F250013C21E /* Frameworks */, 115 | 8B85202322DE1F250013C21E /* Resources */, 116 | ); 117 | buildRules = ( 118 | ); 119 | dependencies = ( 120 | ); 121 | name = VisualRichLink; 122 | productName = VisualRichLink; 123 | productReference = 8B85202522DE1F250013C21E /* VisualRichLink.app */; 124 | productType = "com.apple.product-type.application"; 125 | }; 126 | /* End PBXNativeTarget section */ 127 | 128 | /* Begin PBXProject section */ 129 | 8B85201D22DE1F250013C21E /* Project object */ = { 130 | isa = PBXProject; 131 | attributes = { 132 | LastSwiftUpdateCheck = 1100; 133 | LastUpgradeCheck = 1100; 134 | ORGANIZATIONNAME = "Alfian Losari"; 135 | TargetAttributes = { 136 | 8B85202422DE1F250013C21E = { 137 | CreatedOnToolsVersion = 11.0; 138 | }; 139 | }; 140 | }; 141 | buildConfigurationList = 8B85202022DE1F250013C21E /* Build configuration list for PBXProject "VisualRichLink" */; 142 | compatibilityVersion = "Xcode 9.3"; 143 | developmentRegion = en; 144 | hasScannedForEncodings = 0; 145 | knownRegions = ( 146 | en, 147 | Base, 148 | ); 149 | mainGroup = 8B85201C22DE1F250013C21E; 150 | productRefGroup = 8B85202622DE1F250013C21E /* Products */; 151 | projectDirPath = ""; 152 | projectRoot = ""; 153 | targets = ( 154 | 8B85202422DE1F250013C21E /* VisualRichLink */, 155 | ); 156 | }; 157 | /* End PBXProject section */ 158 | 159 | /* Begin PBXResourcesBuildPhase section */ 160 | 8B85202322DE1F250013C21E /* Resources */ = { 161 | isa = PBXResourcesBuildPhase; 162 | buildActionMask = 2147483647; 163 | files = ( 164 | 8B85203522DE1F270013C21E /* LaunchScreen.storyboard in Resources */, 165 | 8B85203222DE1F270013C21E /* Assets.xcassets in Resources */, 166 | 8B85203022DE1F250013C21E /* Main.storyboard in Resources */, 167 | ); 168 | runOnlyForDeploymentPostprocessing = 0; 169 | }; 170 | /* End PBXResourcesBuildPhase section */ 171 | 172 | /* Begin PBXSourcesBuildPhase section */ 173 | 8B85202122DE1F250013C21E /* Sources */ = { 174 | isa = PBXSourcesBuildPhase; 175 | buildActionMask = 2147483647; 176 | files = ( 177 | 8B85202D22DE1F250013C21E /* LinkViewController.swift in Sources */, 178 | 8B85202922DE1F250013C21E /* AppDelegate.swift in Sources */, 179 | 8B85204322DF7A330013C21E /* ListViewController.swift in Sources */, 180 | 8B85204822E0028D0013C21E /* SubtitleTableViewCell.swift in Sources */, 181 | 8B85203E22DE1FD60013C21E /* LinkViewTableViewCell.swift in Sources */, 182 | 8B85204122DF79C90013C21E /* PageLink.swift in Sources */, 183 | 8B85202B22DE1F250013C21E /* SceneDelegate.swift in Sources */, 184 | ); 185 | runOnlyForDeploymentPostprocessing = 0; 186 | }; 187 | /* End PBXSourcesBuildPhase section */ 188 | 189 | /* Begin PBXVariantGroup section */ 190 | 8B85202E22DE1F250013C21E /* Main.storyboard */ = { 191 | isa = PBXVariantGroup; 192 | children = ( 193 | 8B85202F22DE1F250013C21E /* Base */, 194 | ); 195 | name = Main.storyboard; 196 | sourceTree = ""; 197 | }; 198 | 8B85203322DE1F270013C21E /* LaunchScreen.storyboard */ = { 199 | isa = PBXVariantGroup; 200 | children = ( 201 | 8B85203422DE1F270013C21E /* Base */, 202 | ); 203 | name = LaunchScreen.storyboard; 204 | sourceTree = ""; 205 | }; 206 | /* End PBXVariantGroup section */ 207 | 208 | /* Begin XCBuildConfiguration section */ 209 | 8B85203722DE1F270013C21E /* Debug */ = { 210 | isa = XCBuildConfiguration; 211 | buildSettings = { 212 | ALWAYS_SEARCH_USER_PATHS = NO; 213 | CLANG_ANALYZER_NONNULL = YES; 214 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 215 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 216 | CLANG_CXX_LIBRARY = "libc++"; 217 | CLANG_ENABLE_MODULES = YES; 218 | CLANG_ENABLE_OBJC_ARC = YES; 219 | CLANG_ENABLE_OBJC_WEAK = YES; 220 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 221 | CLANG_WARN_BOOL_CONVERSION = YES; 222 | CLANG_WARN_COMMA = YES; 223 | CLANG_WARN_CONSTANT_CONVERSION = YES; 224 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 225 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 226 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 227 | CLANG_WARN_EMPTY_BODY = YES; 228 | CLANG_WARN_ENUM_CONVERSION = YES; 229 | CLANG_WARN_INFINITE_RECURSION = YES; 230 | CLANG_WARN_INT_CONVERSION = YES; 231 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 232 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 233 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 234 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 235 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 236 | CLANG_WARN_STRICT_PROTOTYPES = YES; 237 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 238 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 239 | CLANG_WARN_UNREACHABLE_CODE = YES; 240 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 241 | COPY_PHASE_STRIP = NO; 242 | DEBUG_INFORMATION_FORMAT = dwarf; 243 | ENABLE_STRICT_OBJC_MSGSEND = YES; 244 | ENABLE_TESTABILITY = YES; 245 | GCC_C_LANGUAGE_STANDARD = gnu11; 246 | GCC_DYNAMIC_NO_PIC = NO; 247 | GCC_NO_COMMON_BLOCKS = YES; 248 | GCC_OPTIMIZATION_LEVEL = 0; 249 | GCC_PREPROCESSOR_DEFINITIONS = ( 250 | "DEBUG=1", 251 | "$(inherited)", 252 | ); 253 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 254 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 255 | GCC_WARN_UNDECLARED_SELECTOR = YES; 256 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 257 | GCC_WARN_UNUSED_FUNCTION = YES; 258 | GCC_WARN_UNUSED_VARIABLE = YES; 259 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 260 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 261 | MTL_FAST_MATH = YES; 262 | ONLY_ACTIVE_ARCH = YES; 263 | SDKROOT = iphoneos; 264 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 265 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 266 | }; 267 | name = Debug; 268 | }; 269 | 8B85203822DE1F270013C21E /* Release */ = { 270 | isa = XCBuildConfiguration; 271 | buildSettings = { 272 | ALWAYS_SEARCH_USER_PATHS = NO; 273 | CLANG_ANALYZER_NONNULL = YES; 274 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 275 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 276 | CLANG_CXX_LIBRARY = "libc++"; 277 | CLANG_ENABLE_MODULES = YES; 278 | CLANG_ENABLE_OBJC_ARC = YES; 279 | CLANG_ENABLE_OBJC_WEAK = YES; 280 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 281 | CLANG_WARN_BOOL_CONVERSION = YES; 282 | CLANG_WARN_COMMA = YES; 283 | CLANG_WARN_CONSTANT_CONVERSION = YES; 284 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 285 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 286 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 287 | CLANG_WARN_EMPTY_BODY = YES; 288 | CLANG_WARN_ENUM_CONVERSION = YES; 289 | CLANG_WARN_INFINITE_RECURSION = YES; 290 | CLANG_WARN_INT_CONVERSION = YES; 291 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 292 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 293 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 294 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 295 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 296 | CLANG_WARN_STRICT_PROTOTYPES = YES; 297 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 298 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 299 | CLANG_WARN_UNREACHABLE_CODE = YES; 300 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 301 | COPY_PHASE_STRIP = NO; 302 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 303 | ENABLE_NS_ASSERTIONS = NO; 304 | ENABLE_STRICT_OBJC_MSGSEND = YES; 305 | GCC_C_LANGUAGE_STANDARD = gnu11; 306 | GCC_NO_COMMON_BLOCKS = YES; 307 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 308 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 309 | GCC_WARN_UNDECLARED_SELECTOR = YES; 310 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 311 | GCC_WARN_UNUSED_FUNCTION = YES; 312 | GCC_WARN_UNUSED_VARIABLE = YES; 313 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 314 | MTL_ENABLE_DEBUG_INFO = NO; 315 | MTL_FAST_MATH = YES; 316 | SDKROOT = iphoneos; 317 | SWIFT_COMPILATION_MODE = wholemodule; 318 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 319 | VALIDATE_PRODUCT = YES; 320 | }; 321 | name = Release; 322 | }; 323 | 8B85203A22DE1F270013C21E /* Debug */ = { 324 | isa = XCBuildConfiguration; 325 | buildSettings = { 326 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 327 | CODE_SIGN_STYLE = Automatic; 328 | DEVELOPMENT_TEAM = 5C2XD9H2JS; 329 | INFOPLIST_FILE = VisualRichLink/Info.plist; 330 | LD_RUNPATH_SEARCH_PATHS = ( 331 | "$(inherited)", 332 | "@executable_path/Frameworks", 333 | ); 334 | PRODUCT_BUNDLE_IDENTIFIER = com.alfianlosari.VisualRichLink; 335 | PRODUCT_NAME = "$(TARGET_NAME)"; 336 | SWIFT_VERSION = 5.0; 337 | TARGETED_DEVICE_FAMILY = "1,2"; 338 | }; 339 | name = Debug; 340 | }; 341 | 8B85203B22DE1F270013C21E /* Release */ = { 342 | isa = XCBuildConfiguration; 343 | buildSettings = { 344 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 345 | CODE_SIGN_STYLE = Automatic; 346 | DEVELOPMENT_TEAM = 5C2XD9H2JS; 347 | INFOPLIST_FILE = VisualRichLink/Info.plist; 348 | LD_RUNPATH_SEARCH_PATHS = ( 349 | "$(inherited)", 350 | "@executable_path/Frameworks", 351 | ); 352 | PRODUCT_BUNDLE_IDENTIFIER = com.alfianlosari.VisualRichLink; 353 | PRODUCT_NAME = "$(TARGET_NAME)"; 354 | SWIFT_VERSION = 5.0; 355 | TARGETED_DEVICE_FAMILY = "1,2"; 356 | }; 357 | name = Release; 358 | }; 359 | /* End XCBuildConfiguration section */ 360 | 361 | /* Begin XCConfigurationList section */ 362 | 8B85202022DE1F250013C21E /* Build configuration list for PBXProject "VisualRichLink" */ = { 363 | isa = XCConfigurationList; 364 | buildConfigurations = ( 365 | 8B85203722DE1F270013C21E /* Debug */, 366 | 8B85203822DE1F270013C21E /* Release */, 367 | ); 368 | defaultConfigurationIsVisible = 0; 369 | defaultConfigurationName = Release; 370 | }; 371 | 8B85203922DE1F270013C21E /* Build configuration list for PBXNativeTarget "VisualRichLink" */ = { 372 | isa = XCConfigurationList; 373 | buildConfigurations = ( 374 | 8B85203A22DE1F270013C21E /* Debug */, 375 | 8B85203B22DE1F270013C21E /* Release */, 376 | ); 377 | defaultConfigurationIsVisible = 0; 378 | defaultConfigurationName = Release; 379 | }; 380 | /* End XCConfigurationList section */ 381 | }; 382 | rootObject = 8B85201D22DE1F250013C21E /* Project object */; 383 | } 384 | -------------------------------------------------------------------------------- /VisualRichLink.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /VisualRichLink.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /VisualRichLink.xcodeproj/project.xcworkspace/xcuserdata/alfianlosari.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfianlosari/iOSVisualRichLinkApp/e2714375c5f25f07a3224e39503e45bd313f1682/VisualRichLink.xcodeproj/project.xcworkspace/xcuserdata/alfianlosari.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /VisualRichLink.xcodeproj/xcuserdata/alfianlosari.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /VisualRichLink.xcodeproj/xcuserdata/alfianlosari.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | VisualRichLink.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /VisualRichLink/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // VisualRichLink 4 | // 5 | // Created by Alfian Losari on 16/07/19. 6 | // Copyright © 2019 Alfian Losari. 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 | -------------------------------------------------------------------------------- /VisualRichLink/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /VisualRichLink/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /VisualRichLink/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 | -------------------------------------------------------------------------------- /VisualRichLink/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 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /VisualRichLink/Cells/LinkViewTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LinkViewTableViewCell.swift 3 | // VisualRichLink 4 | // 5 | // Created by Alfian Losari on 16/07/19. 6 | // Copyright © 2019 Alfian Losari. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import LinkPresentation 11 | 12 | class LinkViewTableViewCell: UITableViewCell { 13 | 14 | var linkView: LPLinkView? 15 | 16 | override func prepareForReuse() { 17 | super.prepareForReuse() 18 | linkView?.removeFromSuperview() 19 | } 20 | 21 | func configure(_ metadata: LPLinkMetadata) { 22 | let linkView = LPLinkView(metadata: metadata) 23 | contentView.addSubview(linkView) 24 | linkView.translatesAutoresizingMaskIntoConstraints = false 25 | 26 | linkView.topAnchor.constraint(equalTo: contentView.topAnchor, constant: 16).isActive = true 27 | linkView.bottomAnchor.constraint(equalTo: contentView.bottomAnchor, constant: -16).isActive = true 28 | linkView.leadingAnchor.constraint(equalTo: contentView.leadingAnchor, constant: 16).isActive = true 29 | linkView.trailingAnchor.constraint(equalTo: contentView.trailingAnchor, constant: -16).isActive = true 30 | 31 | 32 | 33 | 34 | self.linkView = linkView 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /VisualRichLink/Cells/SubtitleTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SubtitleTableViewCell.swift 3 | // VisualRichLink 4 | // 5 | // Created by Alfian Losari on 18/07/19. 6 | // Copyright © 2019 Alfian Losari. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class SubtitleTableViewCell: UITableViewCell { 12 | 13 | override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { 14 | super.init(style: .subtitle, reuseIdentifier: reuseIdentifier) 15 | } 16 | 17 | required init?(coder: NSCoder) { 18 | fatalError("init(coder:) has not been implemented") 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /VisualRichLink/Controllers/LinkViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // VisualRichLink 4 | // 5 | // Created by Alfian Losari on 16/07/19. 6 | // Copyright © 2019 Alfian Losari. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import LinkPresentation 11 | 12 | class LinkViewController: UITableViewController, UIActivityItemSource { 13 | 14 | var activityIndicator: UIActivityIndicatorView? 15 | var segmentedControl: UISegmentedControl? 16 | var linkType = LinkType.visualRichLink { 17 | didSet { 18 | tableView.reloadData() 19 | } 20 | } 21 | 22 | private let page: PageLink 23 | 24 | init(page: PageLink) { 25 | self.page = page 26 | super.init(style: .plain) 27 | } 28 | 29 | required init?(coder: NSCoder) { 30 | fatalError("init(coder:) has not been implemented") 31 | } 32 | 33 | private var metadata: [LPLinkMetadata] = [] { 34 | didSet { 35 | self.segmentedControl?.selectedSegmentIndex = LinkType.visualRichLink.rawValue 36 | self.linkType = .visualRichLink 37 | } 38 | } 39 | var selectedMetadata: LPLinkMetadata? 40 | 41 | override func viewDidLoad() { 42 | super.viewDidLoad() 43 | setupActivityIndicator() 44 | setupSegmentedControl() 45 | 46 | loadMetadata() 47 | tableView.register(UITableViewCell.self, forCellReuseIdentifier: "Cell") 48 | tableView.register(LinkViewTableViewCell.self, forCellReuseIdentifier: "LinkCell") 49 | tableView.tableFooterView = UIView() 50 | } 51 | 52 | @objc func segmentChanged(_ sender: UISegmentedControl) { 53 | linkType = sender.linkType 54 | } 55 | 56 | private func setupActivityIndicator() { 57 | self.activityIndicator = UIActivityIndicatorView(style: .large) 58 | self.activityIndicator?.hidesWhenStopped = true 59 | self.activityIndicator?.stopAnimating() 60 | self.view.addSubview(self.activityIndicator!) 61 | self.activityIndicator?.center = self.view.center 62 | } 63 | 64 | private func setupSegmentedControl() { 65 | let segmentedControl = UISegmentedControl(items: ["Visual Rich Link", "URL"]) 66 | segmentedControl.selectedSegmentIndex = 0 67 | segmentedControl.addTarget(self, action: #selector(segmentChanged(_:)), for: .valueChanged) 68 | navigationItem.titleView = segmentedControl 69 | self.segmentedControl = segmentedControl 70 | } 71 | 72 | private func loadMetadata() { 73 | activityIndicator?.startAnimating() 74 | 75 | var metadatas = [LPLinkMetadata]() 76 | let dispatchGroup = DispatchGroup() 77 | for url in page.urls { 78 | DispatchQueue.main.async(group: dispatchGroup) { 79 | dispatchGroup.enter() 80 | let mdProvider = LPMetadataProvider() 81 | mdProvider.startFetchingMetadata(for: url) { (metadata, error) in 82 | if let metadata = metadata { 83 | metadatas.append(metadata) 84 | } 85 | dispatchGroup.leave() 86 | } 87 | } 88 | } 89 | 90 | dispatchGroup.notify(queue: DispatchQueue.main) { [weak self] in 91 | self?.activityIndicator?.stopAnimating() 92 | self?.metadata = metadatas 93 | self?.tableView.reloadData() 94 | } 95 | } 96 | 97 | override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { 98 | return page.website 99 | } 100 | 101 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 102 | switch linkType { 103 | case .visualRichLink: 104 | return metadata.count 105 | default: 106 | return page.urls.count 107 | } 108 | } 109 | 110 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 111 | switch linkType { 112 | case .visualRichLink: 113 | let cell = tableView.dequeueReusableCell(withIdentifier: "LinkCell", for: indexPath) as! LinkViewTableViewCell 114 | cell.configure(metadata[indexPath.row]) 115 | return cell 116 | default: 117 | let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) 118 | cell.textLabel?.text = page.urls[indexPath.row].absoluteString 119 | return cell 120 | } 121 | } 122 | 123 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 124 | tableView.deselectRow(at: indexPath, animated: true) 125 | switch linkType { 126 | case .visualRichLink: 127 | selectedMetadata = self.metadata[indexPath.row] 128 | let vc = UIActivityViewController(activityItems: [self], applicationActivities: []) 129 | present(vc, animated: true) 130 | 131 | 132 | default: 133 | let url = page.urls[indexPath.row] 134 | let vc = UIActivityViewController(activityItems: [url], applicationActivities: []) 135 | present(vc, animated: true) 136 | 137 | 138 | } 139 | } 140 | 141 | func activityViewControllerLinkMetadata(_ activityViewController: UIActivityViewController) -> LPLinkMetadata? { 142 | return self.selectedMetadata 143 | } 144 | 145 | func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any { 146 | return "" 147 | } 148 | 149 | func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? { 150 | return self.selectedMetadata 151 | } 152 | 153 | 154 | } 155 | 156 | 157 | fileprivate extension UISegmentedControl { 158 | 159 | var linkType: LinkType { 160 | switch self.selectedSegmentIndex { 161 | case 0: 162 | return .visualRichLink 163 | default: 164 | return .url 165 | } 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /VisualRichLink/Controllers/ListViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ListViewController.swift 3 | // VisualRichLink 4 | // 5 | // Created by Alfian Losari on 17/07/19. 6 | // Copyright © 2019 Alfian Losari. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ListViewController: UITableViewController { 12 | 13 | var pages = PageLink.samplePages 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | title = "Visual Rich Link URL Presentation" 18 | 19 | tableView.register(SubtitleTableViewCell.self, forCellReuseIdentifier: "Cell") 20 | tableView.tableFooterView = UIView() 21 | } 22 | 23 | override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 24 | return pages.count 25 | } 26 | 27 | override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 28 | let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) 29 | let page = pages[indexPath.row] 30 | cell.textLabel?.text = page.name 31 | cell.detailTextLabel?.text = page.website 32 | return cell 33 | } 34 | 35 | override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 36 | let vc = LinkViewController(page: pages[indexPath.row]) 37 | navigationController?.pushViewController(vc, animated: true) 38 | } 39 | 40 | } 41 | 42 | -------------------------------------------------------------------------------- /VisualRichLink/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 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UILaunchStoryboardName 33 | LaunchScreen 34 | UISceneConfigurationName 35 | Default Configuration 36 | UISceneDelegateClassName 37 | $(PRODUCT_MODULE_NAME).SceneDelegate 38 | UISceneStoryboardFile 39 | Main 40 | 41 | 42 | 43 | 44 | UILaunchStoryboardName 45 | LaunchScreen 46 | UIMainStoryboardFile 47 | Main 48 | UIRequiredDeviceCapabilities 49 | 50 | armv7 51 | 52 | UISupportedInterfaceOrientations 53 | 54 | UIInterfaceOrientationPortrait 55 | UIInterfaceOrientationLandscapeLeft 56 | UIInterfaceOrientationLandscapeRight 57 | 58 | UISupportedInterfaceOrientations~ipad 59 | 60 | UIInterfaceOrientationPortrait 61 | UIInterfaceOrientationPortraitUpsideDown 62 | UIInterfaceOrientationLandscapeLeft 63 | UIInterfaceOrientationLandscapeRight 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /VisualRichLink/Models/PageLink.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PageLink.swift 3 | // VisualRichLink 4 | // 5 | // Created by Alfian Losari on 17/07/19. 6 | // Copyright © 2019 Alfian Losari. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | enum LinkType: Int { 12 | case visualRichLink 13 | case url 14 | } 15 | 16 | struct PageLink { 17 | 18 | let name: String 19 | let website: String 20 | let urls: [URL] 21 | 22 | } 23 | 24 | extension PageLink { 25 | 26 | static var samplePages: [PageLink] { 27 | return [ 28 | PageLink(name: "GO-JEK", website: "https://go-jek.com", urls: [ 29 | URL(string: "https://www.go-jek.com/go-ride/")!, 30 | URL(string: "https://www.go-jek.com/go-food/")!, 31 | URL(string: "https://www.go-jek.com/go-pay/")!, 32 | ]), 33 | PageLink(name: "Apple", website: "https://apple.com", urls: [ 34 | URL(string: "https://www.apple.com/ipad/")!, 35 | URL(string: "https://www.apple.com/mac/")!, 36 | URL(string: "https://www.apple.com/iphone/")! 37 | ]), 38 | PageLink(name: "YouTube", website: "https://youtube.com", urls: [ 39 | URL(string: "https://www.youtube.com/watch?v=rf4dy3ayicU&t=201s")!, 40 | URL(string: "https://www.youtube.com/watch?v=FOp3L2OTG6g")!, 41 | URL(string: "https://www.youtube.com/watch?v=Z3xSGv3Hfio")! 42 | ]), 43 | PageLink(name: "Wikipedia", website: "https://wikipedia.org", urls: [ 44 | URL(string: "https://en.wikipedia.org/wiki/Steve_Jobs")!, 45 | URL(string: "https://en.wikipedia.org/wiki/Jony_Ive")!, 46 | URL(string: "https://en.wikipedia.org/wiki/Dieter_Rams")!, 47 | ]), 48 | PageLink(name: "Twitter", website: "https://twitter.com", urls: [ 49 | URL(string: "https://twitter.com/tim_cook/status/1151622979777748992")!, 50 | URL(string: "https://twitter.com/elonmusk/status/1149370463564357632")!, 51 | URL(string: "https://twitter.com/drfeifei/status/1105895019888537600")!, 52 | ]), 53 | PageLink(name: "Google Maps", website: "https://maps.google.com", urls: [ 54 | URL(string: "https://www.google.com/maps/place/Pasaraya+Blok+M/@-6.2438909,106.8006669,17z/data=!3m1!4b1!4m5!3m4!1s0x2e69f16ed5d61511:0x4b1c6d654a7fbee5!8m2!3d-6.2438962!4d106.8028556")!, 55 | URL(string: "https://www.google.com/maps/place/Pacific+Place/@-6.2247206,106.8076946,17z/data=!3m1!4b1!4m5!3m4!1s0x2e69f151104aee2b:0xc4a608b34b5f03cc!8m2!3d-6.2247259!4d106.8098833")! 56 | ]) 57 | ] 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /VisualRichLink/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // VisualRichLink 4 | // 5 | // Created by Alfian Losari on 16/07/19. 6 | // Copyright © 2019 Alfian Losari. 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 | -------------------------------------------------------------------------------- /promo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alfianlosari/iOSVisualRichLinkApp/e2714375c5f25f07a3224e39503e45bd313f1682/promo.png --------------------------------------------------------------------------------