Skip to content

A collection of useful helper implementations, common extensions, convenience definitions and workarounds.

License

Notifications You must be signed in to change notification settings

simonnickel/snap-core

Repository files navigation

SnapCore

This package is part of the SNAP suite.

A collection of useful helper implementations and common extensions for Swift and SwiftUI.

Swift

Useful Swift extensions for convenience.

SwiftUI

Extensions of SwiftUI types, convenience Views and workaround implementations for annoying default bahaviour or bugs.

Highlights:

Conditional Modifier:

var shouldApplyBackground: Bool
Text("Hello, world!")
	.if(shouldApplyBackground) { view in
		view.background(Color.red)
	} else: {
		view.background(Color.clear)
	}

Others

Some generic types that might be useful for other packages.

About

A collection of useful helper implementations, common extensions, convenience definitions and workarounds.

Topics

Resources

License

Stars

Watchers

Forks

Languages