Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2025-01-14 14:52:13 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
27750bf04e1a6468c984c077b94c24bdff58fec9
27750bf0
1 parent
fb475836
refactor MarketLoyaltyAnalysisViewController to show only redemed coupons history
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
12 deletions
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/MarketLoyaltyAnalysisViewController.swift
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
27750bf
...
...
@@ -7,7 +7,7 @@
<key>
Pods-SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
<integer>
1
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
27750bf
...
...
@@ -7,7 +7,7 @@
<key>
SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
</integer>
<integer>
0
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
27750bf
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
27750bf
...
...
@@ -1315,6 +1315,7 @@
</view>
<connections>
<outlet
property=
"contentView"
destination=
"x9j-kU-Q25"
id=
"h6a-qK-bop"
/>
<outlet
property=
"contentViewHeight"
destination=
"7Xg-3a-EH0"
id=
"vn0-rT-6Ca"
/>
<outlet
property=
"leftButton"
destination=
"FP3-6W-wCc"
id=
"Oq4-zv-dv4"
/>
<outlet
property=
"leftLineView"
destination=
"xCo-hd-ld3"
id=
"d06-NR-FqZ"
/>
<outlet
property=
"rightButton"
destination=
"YkY-Mb-Lq3"
id=
"7nv-za-4NO"
/>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MarketLoyaltyAnalysisViewController.swift
View file @
27750bf
...
...
@@ -15,6 +15,7 @@ import SwiftEventBus
@IBOutlet
weak
var
leftLineView
:
UIView
!
@IBOutlet
weak
var
rightLineView
:
UIView
!
@IBOutlet
weak
var
contentView
:
UIView
!
@IBOutlet
weak
var
contentViewHeight
:
NSLayoutConstraint
!
var
pageController
:
UIPageViewController
!
var
tabSelected
=
0
...
...
@@ -31,6 +32,9 @@ import SwiftEventBus
setBackButton
()
setNavigationTitle
(
"Ανάλυση"
)
// TODO: DELETE if tabs needed again
contentViewHeight
.
constant
=
0
// tab
leftButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
15
)
leftButton
.
setTitle
(
"Εξαργυρωμένα"
,
for
:
.
normal
)
...
...
@@ -48,18 +52,44 @@ import SwiftEventBus
leftLineView
.
isHidden
=
false
rightLineView
.
isHidden
=
true
// TODO: UNCOMMENT if tabs needed again
// pages
pageController
=
UIPageViewController
(
transitionStyle
:
.
scroll
,
navigationOrientation
:
.
horizontal
)
pageController
.
dataSource
=
self
;
pageController
.
delegate
=
self
;
pageController
.
view
.
frame
=
contentView
.
bounds
;
addChild
(
pageController
)
contentView
.
addSubview
(
pageController
.
view
)
pageController
.
didMove
(
toParent
:
self
)
// pageController = UIPageViewController(transitionStyle:.scroll, navigationOrientation:.horizontal)
// pageController.dataSource = self;
// pageController.delegate = self;
//
// pageController.view.frame = contentView.bounds;
// addChild(pageController)
// contentView.addSubview(pageController.view)
// pageController .didMove(toParent: self)
//
// let analysisVC = self.viewControllerAt(0)
// pageController.setViewControllers([analysisVC!], direction:.forward, animated:false)
// <==
let
analysisVC
=
self
.
viewControllerAt
(
0
)
pageController
.
setViewControllers
([
analysisVC
!
],
direction
:
.
forward
,
animated
:
false
)
// TODO: DELETE if tabs needed again ==>
// Instantiate the child view controller
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
childVC
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"MarketHistoryViewController"
)
as!
SwiftWarplyFramework
.
MarketHistoryViewController
// Add the child view controller
addChild
(
childVC
)
// Add the child view controller's view to the container
contentView
.
addSubview
(
childVC
.
view
)
// Set up constraints for the child view to match the container view
childVC
.
view
.
translatesAutoresizingMaskIntoConstraints
=
false
NSLayoutConstraint
.
activate
([
childVC
.
view
.
topAnchor
.
constraint
(
equalTo
:
contentView
.
topAnchor
),
childVC
.
view
.
bottomAnchor
.
constraint
(
equalTo
:
contentView
.
bottomAnchor
),
childVC
.
view
.
leadingAnchor
.
constraint
(
equalTo
:
contentView
.
leadingAnchor
),
childVC
.
view
.
trailingAnchor
.
constraint
(
equalTo
:
contentView
.
trailingAnchor
),
])
// Notify the child view controller that it has been moved to the parent
childVC
.
didMove
(
toParent
:
self
)
// <==
}
public
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
...
Please
register
or
login
to post a comment