File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Demo/QRCodeView Demo/macOS/QRCodeView ObjC Demo Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ - (void)doTests {
9696
9797 doc.design .shape .onPixels = [QRCodePixelShapeRazor new ];
9898
99+ doc.design .shape .pupil = [QRCodePupilShapeKoala new ];
100+
99101 NSError * error = NULL ;
100102 CGImageRef image = [doc cgImageWithDimension: 600 error: &error];
101103 assert (error == nil );
Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ public extension QRCode {
4242
4343public extension QRCode {
4444 /// Flip
45- @objc enum Flip : Int {
45+ @objc ( QRCodeFlip ) enum Flip : Int {
4646 /// No Flip
47- case none
47+ case none = 0
4848 /// Flip along the horizontal axis
4949 case horizontally = 1
5050 /// Flip along the vertical axis
Original file line number Diff line number Diff line change @@ -36,8 +36,14 @@ public extension QRCode.PupilShape {
3636 @objc public var flip : QRCode . Flip = . none
3737
3838 /// Create a koala-node style pupil generator
39+ @objc public override init ( ) {
40+ self . flip = . none
41+ super. init ( )
42+ }
43+
44+ /// Create a koala-node style pupil generator with a transform
3945 /// - Parameter flip: The flip transform to apply to the pupil
40- @objc public init ( flip: QRCode . Flip = . none ) {
46+ @objc public init ( flip: QRCode . Flip ) {
4147 self . flip = flip
4248 super. init ( )
4349 }
You can’t perform that action at this time.
0 commit comments