mirror of
https://github.com/exyte/Macaw.git
synced 2024-10-26 04:49:57 +03:00
32 lines
713 B
Swift
32 lines
713 B
Swift
//
|
|
// MCAShapeLayerLineJoin_iOS.swift
|
|
// MacawOSX
|
|
//
|
|
// Created by Anton Marunko on 27/09/2018.
|
|
// Copyright © 2018 Exyte. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
#if os(iOS)
|
|
import UIKit
|
|
|
|
public struct MCAShapeLayerLineJoin {
|
|
static let miter = CAShapeLayerLineJoin.miter
|
|
static let round = CAShapeLayerLineJoin.round
|
|
static let bevel = CAShapeLayerLineJoin.bevel
|
|
|
|
static func mapToGraphics(model: LineJoin) -> CAShapeLayerLineJoin {
|
|
switch model {
|
|
case .miter:
|
|
return MCAShapeLayerLineJoin.miter
|
|
case .round:
|
|
return MCAShapeLayerLineJoin.round
|
|
case .bevel:
|
|
return MCAShapeLayerLineJoin.bevel
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|