Skip to content

Commit

Permalink
swift 6 대응 에외처리 추가
Browse files Browse the repository at this point in the history
swift 6 대응 에외처리 추가
  • Loading branch information
pkh0225 committed Nov 13, 2024
1 parent 98e6365 commit 624bb47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Example-iOS/Test/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

@UIApplicationMain
@main
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?
Expand Down
6 changes: 4 additions & 2 deletions Sources/EasyConstraints/EasyConstraints.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ public enum VIEW_ADD_TYPE {
case vertical
}

@MainActor
public struct GoneType: OptionSet {
public let rawValue: Int

public init(rawValue: Int) {
nonisolated public init(rawValue: Int) {
self.rawValue = rawValue
}

Expand Down Expand Up @@ -123,6 +124,7 @@ extension NSLayoutConstraint.Attribute {
///}
///
///```
@MainActor
public class EasyConstraints {
private lazy var constraintInfo: ConstraintInfo = { return ConstraintInfo() }()
private class ConstraintInfo {
Expand Down Expand Up @@ -1162,7 +1164,7 @@ public class EasyConstraints {
// MARK: - UIView Extension EasyConstraints
extension UIView {
private struct EasyConstraintsKey {
static var easyConstraints: UInt8 = 0
nonisolated(unsafe) static var easyConstraints: UInt8 = 0
}

public var ec: EasyConstraints {
Expand Down

0 comments on commit 624bb47

Please sign in to comment.