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 UIKit | |
@available(iOS 13, *) | |
public enum UIKitRepresentable { | |
public static func view<V, Model>( | |
viewType: V.Type = V.self, model: Model, | |
make: @escaping ((context: UIViewRepresentableContext<_UIKitView<V,Model, Void>>, model: Model)) -> V, | |
update: (((uiView: V, context: UIViewRepresentableContext<_UIKitView<V,Model, Void>>, model: Model)) -> Void)? = nil, | |
dismantle: (((uiView: V, coordinator: Void)) -> Void)? = nil) -> _UIKitView<V, Model, Void> { |
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
// | |
// UIKit+DynamicStyle.swift | |
// | |
// Created by kaizei on 2019/7/19. | |
// Copyright © 2019 yimi.kaizei. All rights reserved. | |
// | |
import UIKit | |
// MARK: - reflect system style |