Skip to content

Instantly share code, notes, and snippets.

View roddymunro's full-sized avatar

Roddy Munro roddymunro

View GitHub Profile
@roddymunro
roddymunro / ListButton.swift
Created July 13, 2023 17:19
watchOS cell background
struct ListsView: View {
var body: some View {
List(selection: $selectedList) {
ForEach(lists) { list in
Button(action: { }) {
ListButtonLabel(list: list)
}
.buttonStyle(.plain)
.listRowInsets(EdgeInsets())
@roddymunro
roddymunro / 1095-privacy-policy.md
Created September 3, 2021 12:35
1095-privacy-policy

Privacy Policy

Roderick Munro built the 1095 app as a Free app. This SERVICE is provided by Roderick Munro at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at 1095 unless otherwise defined in this Privacy Policy.

Privacy Policy

Roderick Munro built the ECAS Checker app as a Free app. This SERVICE is provided by Roderick Munro at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at ECAS Checker unless otherwise defined in this Privacy Policy.

@roddymunro
roddymunro / true-north-tides-privacy.md
Created December 9, 2020 18:37
True North Tides Privacy Policy

Privacy Policy

Roderick Munro built the True North Tides app as a Free app. This SERVICE is provided by Roderick Munro at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at True North Tides unless otherwise defined in this Privacy Policy.

@roddymunro
roddymunro / SearchablePicker.swift
Last active September 8, 2020 00:41
Code for my tutorial about making your Picker's searchable.
import SwiftUI
struct SearchBar: UIViewRepresentable {
@Binding var text: String
var placeholder: String
func makeUIView(context: UIViewRepresentableContext<SearchBar>) -> UISearchBar {
let searchBar = UISearchBar(frame: .zero)
searchBar.delegate = context.coordinator
import SwiftUI
struct LoadingView<Content>: View where Content: View {
@Binding var isShowing: Bool
var content: () -> Content
var text: String?
var body: some View {
GeometryReader { geometry in
@roddymunro
roddymunro / fetch-all-data-appsync.swift
Created June 22, 2020 15:56
Completed class for my tutorial 'Fetching all your data from AWS AppSync'
class OrderService {
static let shared = OrderService()
private var appSyncClient: AWSAppSyncClient?
public var orders: [Order] = []
private init() {
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appSyncClient = appDelegate.appSyncClient
@roddymunro
roddymunro / appiumcctablog.txt
Created November 5, 2019 16:09
appium chrome custom tab log
[HTTP] {}
[W3C (148f8c38)] Calling AppiumDriver.getContexts() with args: ["148f8c38-96c5-493c-bd46-54631443d67f"]
[AndroidDriver] Getting a list of available webviews
[ADB] Running '/Users/roddymunro/Library/Android/sdk/platform-tools/adb -P 5037 -s RF8M13B5AGR shell cat /proc/net/unix'
[AndroidDriver] Not checking whether webviews have active pages; use the 'ensureWebviewsHavePages' cap to turn this check on
[AndroidDriver] Found webviews: ["WEBVIEW_Terrace"]
[AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_Terrace"]
[W3C (148f8c38)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_Terrace"]
[HTTP] <-- GET /wd/hub/session/148f8c38-96c5-493c-bd46-54631443d67f/contexts 200 60 ms - 42
[HTTP]
@roddymunro
roddymunro / ios-appium-crash.log
Created July 25, 2019 12:55
iOS Appium crash 1.13.0
[MJSONWP (a8e311d7)] Responding to client with driver.getPageSource() result: "\n \n \n
[HTTP] <-- GET /wd/hub/session/a8e311d7-dd6c-4c52-86eb-f3b40778e1e3/source 200 11520 ms - 166621
[HTTP]
[WD Proxy] Got response with status 200: "{\n \"value\" : \"iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\\r\\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAAKOij8kJ0QAAEAASURBVHgB\\r\\n7J0HgB5Vuf4Tiohy\\/4p6mwJJdtNoV694QUCvXkHABBJCUaQmEBJ6R72iYrmCcL0I\\r\\nJJvtNZuEAHaKNAstQIC0zfaeRhohffv8f2fe3cPw7ZdN4UtYZ59xnJw5c8p7fmdm\\r\\neZ\\/vnDkzKNAmAiIgAiIgAiIgAiIgAiIgAiKQjMCgZJGKEwEREAEREAEREAEREAER\\r\\nEAERCKSXdBOIgAiIgAiIgAiIgAiIgAiIQHIC0kvJuShWBERABERABERABERABERA\\r\\nBKSXdA+IgAiIgAiIgAiIgAiIgAiIQHIC0kvJuShWBERABERABERABERABERABKSX\\r\\ndA+IgAiIgAiIgAiIgAiIgAiIQHIC0kvJuShWBERABERABERABERABERABKSXdA+I\\r\\ngAiIgAiIgAiIgAiIgAiIQHIC0kvJuShWBERABERABERABERABERABKSXdA+IgAiI\\r\\ngAiIgAiIgAiIgAiIQHIC0kvJuShWBERABERABERABERABERABKSXdA+IgAiIgAiI\\r\\ngAiIgAiIgAiIQHIC0kvJuShWBERABERABERABERABERABKSXdA+IgAiI