Skip to content

Instantly share code, notes, and snippets.

View Blackjacx's full-sized avatar
👨‍💻
Coding

Stefan Herold Blackjacx

👨‍💻
Coding
View GitHub Profile
@Blackjacx
Blackjacx / Swift-Override-In-Extension.swift
Created April 5, 2023 14:57
Swift Override In Extension
extension GMSMapView {
override open func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
guard traitCollection.hasDifferentColorAppearance(comparedTo: previousTraitCollection) else {
return
}
updateMapStyle()
}
}
@Blackjacx
Blackjacx / tuist-pros-cons.md
Created September 27, 2023 08:27
Tuist Pro/Con

PRO

  • 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.
@Blackjacx
Blackjacx / AsyncStreamNonConcurrentDemo.swift
Last active June 17, 2024 15:47
AsyncStream Non-Concurrent Demo
import UIKit
/// This object should contain everything we need to process async,
/// non-concurrent stream updates.
struct Update {
var id: Int
var finishStream: () -> Void
}
final class UpdateMonitor {