Skip to content

Commit

Permalink
Missing UIEdgeInsets, {FloatSize=ff}
Browse files Browse the repository at this point in the history
  • Loading branch information
johnno1962 committed Oct 16, 2020
1 parent d3de255 commit 15a97e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion SwiftTrace/SwiftArgs.swift
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2020 John Holdsworth. All rights reserved.
//
// Repo: https://github.com/johnno1962/SwiftTrace
// $Id: //depot/SwiftTrace/SwiftTrace/SwiftArgs.swift#87 $
// $Id: //depot/SwiftTrace/SwiftTrace/SwiftArgs.swift#88 $
//
// Decorate trace with argument/return values
// ==========================================
Expand Down Expand Up @@ -57,6 +57,7 @@ extension OSRect: SwiftTraceFloatArg {}
extension OSPoint: SwiftTraceFloatArg {}
extension OSSize: SwiftTraceFloatArg {}
extension CGFloat: SwiftTraceFloatArg {}
extension OSEdgeInsets: SwiftTraceFloatArg {}
#endif

@_silgen_name("swift_getTypeName")
Expand Down
6 changes: 4 additions & 2 deletions SwiftTrace/SwiftSwizzle.swift
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2020 John Holdsworth. All rights reserved.
//
// Repo: https://github.com/johnno1962/SwiftTrace
// $Id: //depot/SwiftTrace/SwiftTrace/SwiftSwizzle.swift#32 $
// $Id: //depot/SwiftTrace/SwiftTrace/SwiftSwizzle.swift#33 $
//
// Mechanics of Swizzling Swift
// ============================
Expand Down Expand Up @@ -251,7 +251,9 @@ extension SwiftTrace {
let returnType = methodSignature == nil ? "UNDECODABLE" :
String(cString: sig_returnType(methodSignature!))
let isStret = returnType.hasPrefix("{") &&
!returnType.hasSuffix("=dd}") && !returnType.hasSuffix("=QQ}")
!returnType.hasSuffix("=ff}") &&
!returnType.hasSuffix("=dd}") &&
!returnType.hasSuffix("=QQ}")
if isStret && !isReturn {
invocation.swiftSelf = intArgs[1]
}
Expand Down
4 changes: 2 additions & 2 deletions SwiftTrace/SwiftTrace.swift
Expand Up @@ -109,9 +109,9 @@ open class SwiftTrace: NSObject {
*/
open class var defaultMethodExclusions: String {
return """
\\.getter| (?:retain|_tryRetain|release|autorelease|_isDeallocating|.cxx_destruct|dealloc|description| debugDescription)]|initWithCoder|\
\\.getter| (?:retain|_tryRetain|release|autorelease|_isDeallocating|.cxx_destruct|_?dealloc|description| debugDescription|contextID)]|initWithCoder|\
^\\+\\[(?:Reader_Base64|UI(?:NibStringIDTable|NibDecoder|CollectionViewData|WebTouchEventsGestureRecognizer)) |\
^.\\[(?:UIView|RemoteCapture|BCEvent) |UIDeviceWhiteColor initWithWhite:alpha:|UIButton _defaultBackgroundImageForType:andState:|\
^.\\[(?:__NSAtom|NSView|UIView|RemoteCapture|BCEvent) |UIDeviceWhiteColor initWithWhite:alpha:|UIButton _defaultBackgroundImageForType:andState:|\
UIImage _initWithCompositedSymbolImageLayers:name:alignUsingBaselines:|\
_UIWindowSceneDeviceOrientationSettingsDiffAction _updateDeviceOrientationWithSettingObserverContext:windowScene:transitionContext:|\
UIColorEffect colorEffectSaturate:|UIWindow _windowWithContextId:|RxSwift.ScheduledDisposable.dispose| ns(?:li|is)_
Expand Down

0 comments on commit 15a97e4

Please sign in to comment.