This PR contains all the work related to setting up this project as required to implement the [Assignment](https://repo.rock-n-code.com/rock-n-code/deep-linking-assignment/wiki/Assignment) on top, as intended. To summarise this work: - [x] created a new **Xcode** project; - [x] cloned the `Wikipedia` app and inserted it into the **Xcode** project; - [x] created the `Locations` app and also, its `Libraries` package; - [x] created the `Shared` package to share dependencies between the apps; - [x] added a `Makefile` file and implemented some **environment** and **help** commands. Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Reviewed-on: rock-n-code/deep-linking-assignment#1
45 lines
1.5 KiB
Swift
45 lines
1.5 KiB
Swift
class ContextualHighlightEditToolbarView: EditToolbarView {
|
|
@IBOutlet private weak var stackView: UIStackView!
|
|
@IBOutlet private weak var showMoreButton: TextFormattingButton!
|
|
|
|
override func awakeFromNib() {
|
|
super.awakeFromNib()
|
|
stackView.isLayoutMarginsRelativeArrangement = true
|
|
stackView.layoutMargins = UIEdgeInsets(top: 5, left: 0, bottom: 5, right: 0)
|
|
|
|
showMoreButton.tintColorKeyPath = \Theme.colors.link
|
|
}
|
|
|
|
@IBAction private func toggleBoldSelection(_ sender: UIButton) {
|
|
delegate?.textFormattingProvidingDidTapBold()
|
|
}
|
|
|
|
@IBAction private func toggleItalicSelection(_ sender: UIButton) {
|
|
delegate?.textFormattingProvidingDidTapItalics()
|
|
}
|
|
|
|
@IBAction private func formatHeader(_ sender: UIButton) {
|
|
delegate?.textFormattingProvidingDidTapTextStyleFormatting()
|
|
}
|
|
|
|
@IBAction private func toggleReferenceSelection(_ sender: UIButton) {
|
|
delegate?.textFormattingProvidingDidTapReference()
|
|
}
|
|
|
|
@IBAction private func toggleAnchorSelection(_ sender: UIButton) {
|
|
delegate?.textFormattingProvidingDidTapLink()
|
|
}
|
|
|
|
@IBAction private func toggleTemplate(sender: UIButton) {
|
|
delegate?.textFormattingProvidingDidTapTemplate()
|
|
}
|
|
|
|
@IBAction private func clearFormatting(sender: UIButton) {
|
|
delegate?.textFormattingProvidingDidTapClearFormatting()
|
|
}
|
|
|
|
@IBAction private func formatText(_ sender: UIButton) {
|
|
delegate?.textFormattingProvidingDidTapTextFormatting()
|
|
}
|
|
}
|