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
struct LocalAsyncImage: View { | |
private let image: UIImage | |
@State private var decodedImage: UIImage? | |
init(image: UIImage) { | |
self.image = image | |
} | |
var body: some View { | |
Image(uiImage: decodedImage ?? .init()) |
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 | |
import SwiftUI | |
// The goal is to store different navigation destinations passed to https://developer.apple.com/documentation/swiftui/list/navigationdestination(for:destination:) | |
protocol ViewDestinationProtocol { | |
associatedtype Route: Hashable | |
associatedtype MyView: View | |
var factory: (Route) -> MyView { get } |
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
🎨SBULog 📘Info Main [2022-03-18 18:59:07.378 SBUMain:initialize(applicationId:):28] [Init] UIKit initialized with id: 9E54ECB6-391C-4A71-9A7D-61860135AE38 | |
2022-03-18 18:59:07.663198+0100 SendBirdUIKit-Sample[56420:8477841] [] nw_protocol_get_quic_image_block_invoke dlopen libquic failed | |
🎨SBULog 📘Info Main [2022-03-18 18:59:31.521 SBUMain:connect(completionHandler:):40] [Request] Connection to SendBird server | |
2022-03-18 18:59:35.075520+0100 SendBirdUIKit-Sample[56420:8478383] Connection 2: received failure notification | |
2022-03-18 18:59:35.075741+0100 SendBirdUIKit-Sample[56420:8478383] Connection 2: failed to connect 12:8, reason -1 | |
2022-03-18 18:59:35.075900+0100 SendBirdUIKit-Sample[56420:8478383] Connection 2: encountered error(12:8) | |
2022-03-18 18:59:35.079813+0100 SendBirdUIKit-Sample[56420:8478383] Task <09175E21-D23D-4BDB-A76C-094CA1B99798>.<1> HTTP load failed, 0/0 bytes (error code: -1009 [12:8]) | |
🎨SBULog 📕Error Main [2022-03-18 18:59:35.083 SBUMain:connect(completionHandler:):53] [Failed] Connection to |
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 UIKit | |
extension UIView { | |
enum Relation { | |
case equal | |
case biggerOrEqual | |
case smallerOrEqual | |
} | |
enum Side { |