Swiftpack.co -  drrost/SurpirseTest as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
drrost/SurpirseTest
Test task for Surprise.com
.package(url: "https://github.com/drrost/SurpirseTest.git", from: "0.0.1")

SurpirseTest

This package is an implementation of Surprise.com developers screening test. It consists off implementation of two functions that reply on two questions.

Question #1

Given string is "Hey, there! Check this out at https://youtube.com :grinning:" Please, use red color to highlight the link.

func highlightLink(in text: String) -> NSAttributedString {
    // Put your code here
}

Implementation supports both - macOS and iOS.

Question #2

Implement map method for Sequence using Swift 5.5. Suggested solution should be Generic.

How to run

Using Xcode

  1. Double click on Package.swift, Xcode package project opens.
  2. Press CMD+U, Xcode runs unit tests.
  3. Press CMD+6, check tests runing results.

Using Terminal

  1. In Terminal navigate to package's root folder using cd shell command.
  2. Type swift test and press Enter, unit tests runs.
  3. Check tests' output.

GitHub

link
Stars: 0
Last commit: 4 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics