This file contains 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
// | |
// ConditionalDefaultEntity.swift | |
// Mercury | |
// | |
// Created by Kyle Bashour on 2/10/25. | |
// Copyright © 2025 Kyle Bashour. All rights reserved. | |
// | |
import AppIntents |
This file contains 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
class StackedHeaderCompositionalLayout: UICollectionViewCompositionalLayout { | |
let collectionHeaderKind: String | |
let sectionHeaderKind: String | |
init( | |
section: NSCollectionLayoutSection, | |
configuration: UICollectionViewCompositionalLayoutConfiguration, | |
collectionHeaderKind: String, | |
sectionHeaderKind: String | |
) { |
This file contains 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
// | |
// StandByMargins.swift | |
// | |
// Created by Kyle Bashour on 8/29/23. | |
// | |
import SwiftUI | |
extension View { | |
func standByMargins() -> some View { |
This file contains 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
// | |
// WidgetBackground.swift | |
// | |
// Created by Kyle Bashour on 6/5/23. | |
// | |
import SwiftUI | |
struct WidgetBackground<Background: View>: ViewModifier { | |
private let background: Background |
This file contains 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
// | |
// ContentView.swift | |
// SafeArea | |
// | |
// Created by Kyle Bashour on 5/24/23. | |
// | |
import SwiftUI | |
struct ContentView: View { |
This file contains 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
class ViewController: UIViewController { | |
let left = ScrollViewController() | |
let right = ScrollViewController() | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
for child in [left, right] { | |
addChild(child) |
This file contains 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
// | |
// ViewController.swift | |
// Sheets | |
// | |
// Created by Kyle Bashour on 6/7/21. | |
// | |
import UIKit | |
class ViewController: UIViewController, UISheetPresentationControllerDelegate { |
This file contains 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
protocol MyProtocol {} | |
struct MyImplemention: MyProtocol {} | |
struct MyStruct { | |
func emptyView() -> some MyProtocol { | |
MyImplemention() | |
} |
This file contains 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 Foundation | |
struct PlaidBalance: Codable { | |
var current: Decimal | |
var available: Decimal | |
var isoCurrencyCode: String | |
} | |
struct PlaidAccount: Codable { | |
enum AccountType: String, Codable { |
This file contains 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
// | |
// ViewController.swift | |
// Table | |
// | |
// Created by Kyle Bashour on 1/21/20. | |
// Copyright © 2020 Kyle Bashour. All rights reserved. | |
// | |
import UIKit |
NewerOlder