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
| // | |
| // SafeRefreshable.swift | |
| // BLNC | |
| // | |
| // Created by Egor Merkushev on 23.01.2022. | |
| // Copyright © 2022 Egor Merkushev. All rights reserved. | |
| // | |
| import SwiftUI |
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
| // | |
| // CustomFont.swift | |
| // BLNC | |
| // | |
| // Created by Egor Merkushev on 31.05.2021. | |
| // Copyright © 2021 Egor Merkushev. All rights reserved. | |
| // Source: https://stackoverflow.com/a/58971579/602249 | |
| import SwiftUI |
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
| // | |
| // ContentView.swift | |
| // NewNav | |
| // | |
| // Created by Egor Merkushev on 15.06.2022. | |
| // | |
| import SwiftUI | |
| struct CustomColorCategory: Identifiable, Hashable, Equatable { |
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
| // | |
| // ContentView.swift | |
| // NewNav | |
| // | |
| // Created by Egor Merkushev on 15.06.2022. | |
| // | |
| import SwiftUI | |
| struct CustomColorCategory: Identifiable, Hashable, Equatable { |
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
| // | |
| // ContentView.swift | |
| // NewNav | |
| // | |
| // Created by Egor Merkushev on 15.06.2022. | |
| // | |
| import SwiftUI | |
| struct CustomColorCategory: Identifiable, Hashable, Equatable { |
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
| - (void)viewDidLoad { | |
| [super viewDidLoad]; | |
| UILabel *titleLabel = [UILabel new]; | |
| titleLabel.font = [UIFont systemFontOfSize:17]; | |
| titleLabel.numberOfLines = 3; | |
| titleLabel.textAlignment = NSTextAlignmentCenter; | |
| titleLabel.adjustsFontSizeToFitWidth = YES; | |
| titleLabel.minimumScaleFactor = 0.5; | |
| titleLabel.text = @"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo."; |
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
| -(void)exportVideo | |
| { | |
| CGSize renderingSize = CGSizeMake(640, 360); // The desired size of your video | |
| float displayDuration = 2.0f; //The duration of the desired video, in seconds | |
| NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
| NSString *documentsDirectory = [paths objectAtIndex:0]; | |
| NSString *myPathDocs = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"FinalVideo-%d.mov",arc4random() % 1000]]; | |
| NSURL *url = [NSURL fileURLWithPath:myPathDocs]; |
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
| // | |
| // CustomFont.swift | |
| // BLNC | |
| // | |
| // Created by Egor Merkushev on 31.05.2021. | |
| // MIT | |
| // Source: https://stackoverflow.com/a/58971579/602249 | |
| import SwiftUI |
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 ContentView: View { | |
| var body: some View { | |
| NavigationView { | |
| ZStack { | |
| List { | |
| ForEach(1..<20) { idx in | |
| if idx == 19 { |
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
| https://www.osstatus.com | |
| -12884 - Media File not received | |
| code -1008, underlying -12884 - Playlist File not received | |
| -11819 AVErrorMediaServicesWereReset with NSOSStatusErrorDomain Code=-12178, solution: rebuild AVPlayer|Item and asset | |
| -11847 AVFoundationErrorDomain H.264 decoding layer has failed, "Operation Interrupted" Error Domain=NSOSStatusErrorDomain Code=-12084 The operation couldn’t be completed https://stackoverflow.com/questions/28841903/why-does-avsamplebufferdisplaylayer-fail-with-operation-interrupted-11847 | |
| HTTP | errorStatusCode | errorDomain | errorComment |