Skip to content

Commit

Permalink
fix: type inference
Browse files Browse the repository at this point in the history
  • Loading branch information
EyreFree committed Nov 26, 2021
1 parent 398b0cd commit 56278ea
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Examples/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: 27214a7a38fbdfb949113bc3e6a74b29450b2e4e

COCOAPODS: 1.10.1
COCOAPODS: 1.11.2
6 changes: 3 additions & 3 deletions Examples/Shared/PointStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ enum PointStyle: Int, CaseIterable {

var efPointStyle: EFPointStyle {
switch self {
case .square: return .square
case .circle: return .circle
case .diamond: return .diamond
case .square: return EFSquarePointStyle.square
case .circle: return EFCirclePointStyle.circle
case .diamond: return EFDiamondPointStyle.diamond
case .star: return StarPointStyle()
}
}
Expand Down
6 changes: 3 additions & 3 deletions Source/EFQRCode+Migration-v6.swift
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ extension CGColor {

fileprivate var efPointStyle: EFPointStyle {
switch self {
case .square: return .square
case .circle: return .circle
case .diamond: return .diamond
case .square: return EFSquarePointStyle.square
case .circle: return EFCirclePointStyle.circle
case .diamond: return EFDiamondPointStyle.diamond
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/EFQRCode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public enum EFQRCode {
watermarkIsTransparent isWatermarkTransparent: Bool = true,
icon: CGImage? = nil,
iconSize: EFIntSize? = nil,
pointStyle: EFPointStyle = .square,
pointStyle: EFPointStyle = EFSquarePointStyle.square,
pointOffset: CGFloat = 0,
isTimingPointStyled: Bool = false,
mode: EFQRCodeMode? = nil
Expand Down Expand Up @@ -129,7 +129,7 @@ public enum EFQRCode {
watermarkIsTransparent isWatermarkTransparent: Bool = true,
icon: CGImage? = nil,
iconSize: EFIntSize? = nil,
pointStyle: EFPointStyle = .square,
pointStyle: EFPointStyle = EFSquarePointStyle.square,
pointOffset: CGFloat = 0,
isTimingPointStyled: Bool = false,
mode: EFQRCodeMode? = nil
Expand Down
2 changes: 1 addition & 1 deletion Source/EFQRCodeGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public class EFQRCodeGenerator: NSObject {
}

/// Style of foreground code points, defaults to `EFPointStyle.square`.
public var pointStyle: EFPointStyle = .square {
public var pointStyle: EFPointStyle = EFSquarePointStyle.square {
didSet {
imageQRCode = nil
}
Expand Down

0 comments on commit 56278ea

Please sign in to comment.