Skip to content

Instantly share code, notes, and snippets.

View hoppsen's full-sized avatar

Marcel Hoppe hoppsen

View GitHub Profile
@hoppsen
hoppsen / .swiftformat
Created May 4, 2022 05:12
My default configuration file for SwiftFormat.
# file options
--exclude Pods,**/.build,**/Package.swift,vendor/bundle,scripts,fastlane,**/L10n.swift,**/Assets.swift,**/*.generated.swift
# format options
--swiftversion 5.5
## elseOnSameLine
--guardelse same-line
@hoppsen
hoppsen / .swiftlint.yml
Created May 4, 2022 05:09
My default configuration file for SwiftLint.
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods
- .build
- vendor/bundle
- scripts
- BuildTools
- fastlane
- templates
line_length: 160
identifier_name:
@hoppsen
hoppsen / TestFlightFeedbackToJiraIssue.rb
Last active January 30, 2023 17:10
A hacky Fastlane lane to collect TestFlight feedback and create sub-tasks in Jira.
desc 'Collects TestFlight feedback and creates sub-tasks in Jira.'
desc '#### Example:'
desc "```\nbundle exec fastlane feedback api_key:1a2b3c4d parent:NA-123 build:456\n```"
desc '#### Options:'
desc ' * **`api_key`**: Your Jira API key. See https://id.atlassian.com/manage-profile/security/api-tokens'
desc ' * **`parent`**: The ticket number of the parent task the sub-tasks should be added to.'
desc ' * **`build`**: Filter TestFlight feedback by build number.'
lane :feedback do |options|
# Lookout for this to be resolved: https://jira.atlassian.com/browse/JSWCLOUD-18031
@hoppsen
hoppsen / UIColor+SystemColors.swift
Last active February 21, 2021 05:13
Introducing system color wrappers to benefit from the new system colors under iOS 12 and below.
//
// UIColor+SystemColors.swift
//
// https://gist.github.com/hoppsen/f3cbe2dd51ad40cfe80609b2e9bebada
//
// More about Apple's System Colors can be found here:
// https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/
import UIKit
@hoppsen
hoppsen / UIFont+DynamicTypeSizes.swift
Last active January 27, 2023 18:02
UIFont extension for (the gradual introduction of) Dynamic Type Sizes, but only enabled in DEBUG mode.
//
// UIFont+DynamicTypeSizes.swift
//
// https://gist.github.com/hoppsen/6b752057b98fa7527ee1f4d4ba05fef0
//
// More about Apple's Typography can be found here:
// https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/typography/
import UIKit