Skip to content

Instantly share code, notes, and snippets.

View CodeSlicing's full-sized avatar
😎
Busy feeling awesome

CodeSlicing

😎
Busy feeling awesome
View GitHub Profile
@CodeSlicing
CodeSlicing / CircularActivityIndicatorDemoNative.swift
Created August 28, 2021 06:37
Native source code for CodeSlicing episode on simple circular activity indicators
//
// CircularActivityIndicatorDemoNative.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
@CodeSlicing
CodeSlicing / NowPlayingEqualiserBarsUsageDemo.swift
Created August 14, 2021 21:59
Source code for CodeSlicing episode on creating the new playing equaliser bars overlay - Part 2
//
// NowPlayingEqualiserBarsUsageDemo.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
@CodeSlicing
CodeSlicing / NowPlayingEqualiserBarsUsageDemoNative.swift
Last active February 12, 2022 20:51
Native source code for CodeSlicing episode on creating the new playing equaliser bars overlay - part 2
//
// NowPlayingEqualiserBarsUsageDemoNative.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
@CodeSlicing
CodeSlicing / GeometryReaderStack.swift
Last active October 8, 2021 09:22
A version of GeometryReader that behaves like a greedy ZStack with a default alignment of center.
//
// GeometryReaderStack.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
@CodeSlicing
CodeSlicing / NowPlayingEqualiserBars.swift
Last active August 14, 2021 21:59
Source code for CodeSlicing episode on creating the new playing equaliser bars overlay - Part 1
//
// NowPlayingEqualiserBars.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
@CodeSlicing
CodeSlicing / NowPlayingEqualiserBarsNative.swift
Last active August 14, 2021 21:59
Native source code for CodeSlicing episode on creating the new playing equaliser bars overlay - part 1
//
// NowPlayingEqualiserBarsNative.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
@CodeSlicing
CodeSlicing / AppleTVRemote.swift
Created July 28, 2021 22:49
AppleTvRemote source code for episode on multiple cursors in Xcode
//
// AppleTVRemote.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
@CodeSlicing
CodeSlicing / AppleTVRemoteNative.swift
Created July 28, 2021 22:49
Native AppleTvRemote source code for episode on multiple cursors in Xcode
//
// AppleTVRemoteNative.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
@CodeSlicing
CodeSlicing / custom-shortcuts.txt
Last active December 16, 2021 07:33
Dictionary entries for CodeSlicing episode on custom shortcuts
<key>User Defined</key>
<dict>
<key>Insert New Line Above Current Line</key>
<string>moveUp:, moveToEndOfLine:, insertNewline:</string>
<key>Insert New Line Below Current Line</key>
<string>moveToEndOfLine:, insertNewline:</string>
<key>Duplicate Current Lines Down</key>
<string>selectParagraph:, delete:, yank:, moveToBeginningOfParagraph:, yank:, moveUp:, moveToEndOfParagraph:</string>
</dict>
@CodeSlicing
CodeSlicing / PowerUpYourPreviews.swift
Created July 9, 2021 16:45
Source code for Quick Tips episode: Power-Up Your Previews
//
// PowerUpYourPreviews.swift
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
// of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//