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
// | |
// LikeView.swift | |
// lottie-first | |
// | |
// Created by Matthew Young on 12/31/22. | |
// | |
import SwiftUI | |
import Lottie |
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 Foundation | |
import SwiftUI | |
public extension View { | |
@available(iOS, obsoleted: 15.0, message: "SwiftUI.View.task is available on iOS 15.") | |
@_disfavoredOverload | |
@inlinable func task( | |
priority: _Concurrency.TaskPriority = .userInitiated, | |
@_inheritActorContext _ action: @escaping @Sendable () async -> Swift.Void | |
) -> some SwiftUI.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
import UIKit | |
// Reference Video: https://youtu.be/iqpAP7s3b-8 | |
struct AnchoredConstraints { | |
var top, leading, bottom, trailing, width, height: NSLayoutConstraint? | |
} | |
let DeviceSize = UIScreen.main.bounds.size |
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
▿ 1303 elements | |
- 0 : "abacus" | |
- 1 : "accordion" | |
- 2 : "acorn" | |
- 3 : "acrobat" | |
- 4 : "adult" | |
- 5 : "adult_cat" | |
- 6 : "agriculture" | |
- 7 : "aircraft" | |
- 8 : "airplane" |
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
//******* STORAGE MODEL **************** | |
import CoreData | |
import Combine | |
class URLMetadataStorage: NSObject, ObservableObject { | |
static let shared = URLMetadataStorage() | |
let parentContext = PersistenceController.shared.container.viewContext |
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
// Author: SwiftUI-Lab (www.swiftui-lab.com) | |
// Description: This code is part of the "Advanced SwiftUI Animations - Part 5" | |
// Article: https://swiftui-lab.com/swiftui-animations-part5/ | |
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
DigitalRain() | |
} |
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 cows // @AlwaysRightInstitute | |
struct ContentView: View { | |
@State var searchString = "" | |
@State var matches = allCows | |
@State var selectedCow : String? | |
let font = Font(NSFont |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<!-- not sure which one it is, so set both --> | |
<key>Ensemble</key> | |
<dict> | |
<key>Enabled</key> | |
<true/> | |
</dict> |