/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/arm64-apple-ios.swiftinterface
View UIView+Util.swift
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
extension UIView { | |
public class func findByAccessibilityIdentifier(identifier: String) -> UIView? { | |
guard let window = UIApplication.sharedApplication().keyWindow else { | |
return nil | |
} | |
func findByID(view: UIView, _ id: String) -> UIView? { | |
if view.accessibilityIdentifier == id { return view } | |
for v in view.subviews { |
View Path.md
View MTKCIImageView.swift
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
// | |
// MTKCIImageView.swift | |
// Fil | |
// | |
// Created by Muukii on 9/27/15. | |
// Copyright © 2015 muukii. All rights reserved. | |
// | |
import Foundation | |
import Metal |
View Gen.swift
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 Foundation | |
extension View { | |
func snapshot(scale: CGFloat) -> UIImage { | |
let controller = UIHostingController(rootView: self) | |
let view = controller.view | |
let targetSize = controller.view.intrinsicContentSize | |
view?.bounds = CGRect(origin: .zero, size: targetSize) |
View UsingMondrianClassicalLayoutAPI.swift
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
let backgroundView = UIView.mock(backgroundColor: .neon(.violet)) | |
let box1 = UIView.mock(backgroundColor: .neon(.red), preferredSize: .largeSquare) | |
let box2 = UIView.mock(backgroundColor: .neon(.yellow), preferredSize: .largeSquare) | |
view.addSubview(backgroundView) | |
view.addSubview(box1) | |
view.addSubview(box2) | |
mondrianBatchLayout { |
View ModifyingLayout.swift
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
HStackBlock(spacing: 10) { | |
box2 | |
box1 | |
} |
View UsingMondrianLayoutStructuredLayoutAPI.swift
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
let backgroundView = UIView.mock(backgroundColor: .neon(.violet)) | |
let box1 = UIView.mock(backgroundColor: .neon(.red), preferredSize: .largeSquare) | |
let box2 = UIView.mock(backgroundColor: .neon(.yellow), preferredSize: .largeSquare) | |
view.mondrian.buildSubviews { | |
HStackBlock(spacing: 10) { | |
box1 | |
box2 | |
} | |
.padding(10) |
View UsingPlainAPI.swift
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
let backgroundView = UIView.mock(backgroundColor: .neon(.violet)) | |
let box1 = UIView.mock(backgroundColor: .neon(.red), preferredSize: .largeSquare) | |
let box2 = UIView.mock(backgroundColor: .neon(.yellow), preferredSize: .largeSquare) | |
view.addSubview(backgroundView) | |
view.addSubview(box1) | |
view.addSubview(box2) | |
backgroundView.translatesAutoresizingMaskIntoConstraints = false | |
box1.translatesAutoresizingMaskIntoConstraints = false |
View ComposedCornerView.swift
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
/// For Transition | |
public final class ComposedCornerView: CodeBasedView { | |
private let topRightMaskView = UIView() | |
private let topLeftMaskView = UIView() | |
private let bottomRightMaskView = UIView() | |
private let bottomLeftMaskView = UIView() | |
private let topRightView = UIView() | |
private let topLeftView = UIView() |
View UIScrollView+insercepts-contentInset.swift
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 ObjectiveC | |
import UIKit | |
let swizzle: Void = { | |
print("swizzle") | |
method_exchangeImplementations( | |
class_getInstanceMethod(UIScrollView.self, #selector(setter:UIScrollView.contentInset))!, | |
class_getInstanceMethod(UIScrollView.self, #selector(UIScrollView._mmm_setContentInset))! |
NewerOlder