Skip to content

Commit

Permalink
[Add] #51 - Add Presentable protocol to manage presentation state
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa-e1 committed Jan 18, 2025
1 parent b3f54d3 commit 9f2fc52
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Memento-iOS/Memento-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
Source/Presentation/Add/AddSchedule/View/AddScheduleView.swift,
Source/Presentation/Add/AddSchedule/ViewModel/AddEventTitleViewModel.swift,
Source/Presentation/Add/Common/PickerButton/Model/PickerButtonType.swift,
Source/Presentation/Add/Common/Protocols/Presentable.swift,
Source/Presentation/Add/Common/SegmentedMenu/Model/SegmentedMenuType.swift,
Source/Presentation/Add/Common/SegmentedMenu/View/SegmentedMenuView.swift,
Source/Presentation/Add/Common/SegmentedMenu/ViewModel/SegmentedMenuViewModel.swift,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Presentable.swift
// Memento-iOS
//
// Created by RAFA on 1/18/25.
//

import Foundation

protocol Presentable {
var isPresented: Bool { get set }
var isPressed: Bool { get set }

func togglePresentation()
func setPressedState(_ pressed: Bool)
func dismiss()
}

0 comments on commit 9f2fc52

Please sign in to comment.