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
// Objective-C Header BaseProxyForSwift.h | |
NS_ASSUME_NONNULL_BEGIN | |
NS_SWIFT_NAME(BaseProxyForSwift) | |
@interface BaseProxyForSwift : NSProxy | |
+ (id)with:(id)object; | |
@end |
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
// protocols | |
protocol Connection { | |
init() | |
} | |
protocol Factory<T> { | |
associatedtype T: Connection | |
func create() -> T | |
} |
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 SwiftUI | |
import PlaygroundSupport | |
struct RoundedRect: View { | |
var body: some View { | |
RoundedRectangle(cornerRadius: 8, style: .continuous) | |
.fill(.blue.opacity(0)) | |
.overlay( | |
ZStack { | |
RoundedRectangle(cornerRadius: 8, style: .continuous) |
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
Конвертация MKV в MP4 | |
ffmpeg -i sme.mkv -codec copy MmZdigKm2ls.mp4 | |
ffmpeg -i 1.avi -c:v libx264 -c:a aac 1.mp4 | |
ffmpeg -i MmZdigKm2ls.mkv -c copy MmZdigKm2ls.mp4 | |
ffmpeg -i MmZdigKm2ls.mkv -c:v libx264 -c:a copy -x264-params crf=25 MmZdigKm2ls.mp4 | |
WEBM в MP4 | |
ffmpeg -fflags +genpts -i 11.webm -r 24 1.mp4 | |
MKV в MP4 с HDR 10 |
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
// | |
// SafeRefreshable.swift | |
// BLNC | |
// | |
// Created by Egor Merkushev on 23.01.2022. | |
// Copyright © 2022 Egor Merkushev. All rights reserved. | |
// | |
import SwiftUI |
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
// | |
// 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 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 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 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 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."; |
NewerOlder