This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Localization.strings | |
// | |
// This file holds my text strings and their keys, some examples below: | |
// | |
"entryBottle" = "Bottle"; | |
"entryLeftBoob" = "Left boob"; | |
"entryRightBoob" = "Right boob"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reference tweet - https://twitter.com/AdamWhitcroft/status/1576402418719281152 | |
// See bottom of gist for things I've tried, recommendations welcome | |
// Core data ScrollView: | |
// | |
// For some reason, the top bounce-back of the scroll | |
// here drops frames and looks horrible. | |
// Video here https://twitter.com/AdamWhitcroft/status/1576402418719281152 | |
NavigationView { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// HierarchicalSymbols.swift | |
// Sandbox | |
// | |
// Created by Adam Whitcroft on 2022-10-10. | |
// | |
import SwiftUI | |
struct HierarchicalSymbols: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppearanceSheet.swift | |
// PeePooBoobRelease | |
// | |
// Created by Adam Whitcroft on 2022-10-07. | |
// | |
import SwiftUI | |
struct AppearanceSheet: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Adam Whitcroft on 2023-01-23. | |
// | |
import SwiftUI | |
struct SimpleDragGesture: View { | |
@State private var focussedItem: String = "middle" | |
@State private var offset = CGSize.zero | |
@State private var accumulatedOffset = CGSize.zero |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Overlay: View { | |
@State private var showLive = true | |
@State private var isAnimationSlowed = false | |
var body: some View { | |
VStack { | |
Spacer() | |
HStack { | |
Spacer() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Thanks for offering to help! This is where I'm at now. | |
// It's an incredibly simple scene, but I'm just starting to | |
// poke around with Scenekit. | |
// | |
// The TL;DR of what I'm trying to do is: | |
// Having a moon in the middle of the view | |
// User CAN rotate moon (currently working) | |
// User CANNOT pinch to zoom (currently working) | |
// User CANNOT reposition the moon within the view (currently NOT WORKING) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ChatGPTTextField: View { | |
// MARK: - State | |
/// State to hold our `TextField` query. | |
@State private var queryMessage: String = "" | |
/// Focus state for our `TextField`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import UIKit | |
/* | |
This is how I've used UIViewRepresentable for wrapping a UITextField | |
for the Search input of my app Daypage. | |
Usage: | |
SearchInputView( |
OlderNewer