- Tuist own explanation of its advantages
- Tuist is developed in Swift (no additional dependencies needed for installation)
- Fast bug fixes since Tuist is open source and developed in a community driven way
- Developers can write configuration files in Swift ❤️
- Code for setting up multiple projects can be shared using Project-Description-Helpers
- Project configuration and build settings can be documented
- External dependencies can be integrated in an easy way. Carthage and SPM are supported too.
- The workspace and project file can be removed from git which leads to a high reduction of merge conflicts and a smoother development process.
- Supports the creation of release pipelines for GitHub Actions and Bitrise.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool { | |
let strippedString = <change replacements string so it fits your requirement - strip, trim, etc> | |
// replace current content with stripped content | |
if let replaceStart = textField.position(from: textField.beginningOfDocument, offset: range.location), | |
let replaceEnd = textField.position(from: replaceStart, offset: range.length), | |
let textRange = textField.textRange(from: replaceStart, to: replaceEnd) { | |
textField.replace(textRange, withText: strippedString) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension GMSMapView { | |
override open func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { | |
super.traitCollectionDidChange(previousTraitCollection) | |
guard traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) else { | |
return | |
} | |
updateMapStyle() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension UIView { | |
func applyParallax() { | |
let amount = 10 | |
let horizontal = UIInterpolatingMotionEffect(keyPath: "center.x", type: .tiltAlongHorizontalAxis) | |
horizontal.minimumRelativeValue = -amount | |
horizontal.maximumRelativeValue = amount | |
let vertical = UIInterpolatingMotionEffect(keyPath: "center.y", type: .tiltAlongVerticalAxis) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Bash script for downloading WWDC video and pdf ressources | |
# You can choose the year you're interested in by altering the variable YEAR (works only for 2014 until today). | |
# | |
# IMPORTANT | |
# Please install wget prior running this script since this tool is used to download the pdf's and videos. I use it | |
# since it is able to prevent re-downloading already existing content. So you can just run this script again and | |
# again and it will just download new content. This is really useful in the week of the WWDC since videos are |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class NibLoadableView: UIView { | |
@IBOutlet var view: UIView! | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
} |
Thanks to Paul Hudson this question is also answered visually now:
From now on you can fnd most of my software https://github.com/Blackjacx/Scripts/blob/master/software.sh
- Adobe Creative Cloud
- Apple Configurator
- Audiacity
- AudioSlicer
- FileZilla
- HockeyApp
- LibreOffice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension XCUIElement { | |
/** | |
Removes any current text in the field before typing in the new value | |
- Parameter text: the text to enter into the field | |
*/ | |
func clearAndEnterText(text: String) { | |
defer { | |
self.typeText(text) | |
} |
NewerOlder