Skip to content

DENKLEM: A modern SwiftUI iOS application for calculating mediation fees in legal disputes according to Turkish mediation fee tariffs (2025/2026). Native Swift implementation providing fast, offline calculations for mediators and legal professionals.

Notifications You must be signed in to change notification settings

ozcotech/Denklem-SwiftUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

80 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ DENKLEM โ€“ Mediation Fee Calculator

DENKLEM (from Latin "aequare" = "to equalize") is a comprehensive native iOS application for calculating mediation fees according to Turkish law. Written from scratch with SwiftUI, the app performs calculations based on the 2025 and 2026 mediation fee tariffs.

The name "DENKLEM" reflects the concept of creating equality and balance between parties, which aligns perfectly with the essence of mediation: establishing balance and fair resolution between disputing parties.

๐Ÿš€ First Version Available on the App Store!
Download now: DENKLEM on App Store


โœจ Why SwiftUI Version?

๐ŸŽฏ Native Performance

  • Faster: 60% faster calculations compared to the React Native version
  • Low Memory Usage: Average memory consumption below 50MB
  • Smooth Animations: Consistent 60fps performance
  • Instant Launch: App startup time under 2 seconds

๐ŸŒŸ Modern iOS Features

  • Liquid Glass Design: Modern glass effects for iOS 26.0+
  • Native Components: Fully SwiftUI and native iOS APIs
  • Future-Ready: Optimized for iOS 26.0+
  • Offline-First: Works completely offline

๐ŸŽจ Enhanced User Experience

  • Bilingual Support: Turkish and English (instant language switching)
  • Light/Dark Mode: Automatic theme support
  • Liquid Glass UI: Optional modern visual effects
  • Accessibility: VoiceOver support coming in future updates

๐Ÿš€ Key Features

๐Ÿ’ฐ Core Functionality - Fee Calculation

  • 2025 & 2026 Official Tariffs: Based on current Turkish mediation fee tariff
  • Smart Calculation Engine: Handles both monetary and non-monetary disputes
  • Dual Scenario Support: Different calculations for agreement vs. non-agreement cases
  • Automatic Tariff Selection: User selects tariff year at startup (2025 or 2026)

๐Ÿ“ฑ User Experience

  • Intuitive Step-by-Step Flow: Guided process from start to finish
  • Native iOS Navigation: Swipe gestures and native transitions
  • Persistent Tab Bar: Quick access to home, legislation, about, and language selection
  • Bilingual: Complete Turkish and English localization
  • Modern Native Design: Professional and user-friendly interface

๐Ÿงฎ Additional Calculators

  • Time Calculation: Calculate mediation process durations
  • Freelance Receipt (SMM): Receipt calculations with tax deductions
  • Comprehensive Results: Detailed explanations with tax implications

๐Ÿ”ง Technical Features

  • iOS 26.0+ Minimum: Optimized for latest iOS features
  • Native SwiftUI: Fully developed with Swift and SwiftUI
  • Offline Capability: No internet required for calculations
  • Real-Time Updates: Instant calculation results
  • Responsive Design: Optimized for all iPhone screen sizes

๐ŸŽจ Design System

  • Liquid Glass Theme: Modern glass effect styles for iOS 26.0+
  • Theme Support: Automatic Light and Dark mode switching
  • Consistent Components: Standard UI components throughout the app
  • Customizable Colors: Theme-based color system

๐Ÿ“ฑ User Journey & Screens

1. StartScreen (Welcome Screen)

Application entry point and tariff year selection:

  • 2025 Tariff: 2025 fee calculations
  • 2026 Tariff: 2026 current fee calculations
  • Modern Animations: Logo and entrance animations

2. DisputeCategoryScreen (Dispute Category)

Calculation type selection:

  • Main Categories:
    • ๐Ÿ’ฐ Monetary: Monetary disputes
    • ๐Ÿ“„ Non-Monetary: Non-monetary disputes
  • Other Calculations:
    • โฐ Time Calculation: Mediation process durations
    • ๐Ÿ“ SMM Calculation: Freelance receipt calculator

3. AgreementStatusScreen (Agreement Status)

Parties' agreement status:

  • Agreement: Redirects to different calculation method
  • No Agreement: Alternative calculation approach

4. DisputeTypeScreen (Dispute Type)

Specific dispute type selection based on previous choices:

  • Labor-Employer
  • Commercial
  • Consumer
  • Rental
  • Neighbor
  • Condominium
  • Family
  • Partnership Dissolution
  • Other

5. InputScreen (Information Entry)

Enter required information:

  • In Agreement Case: Agreement amount + number of parties
  • In Non-Agreement Case: Only number of parties

6. ResultScreen (Result Screen)

Comprehensive result display (as Sheet):

  • Main Fee: Calculated mediation fee
  • Tax Information: Withholding tax calculations when applicable
  • SMM Details: Complete SMM breakdown for professional invoicing

7. Additional Screens

  • TimeCalculationScreen: Calculate mediation process durations
  • SmmCalculationScreen: Detailed freelance receipt calculations
  • LegislationScreen: Access current mediation legislation
  • AboutScreen: App information and contact details

8. Tab Bar Navigation

Tab bar accessible from any screen:

  • ๐Ÿ  Home: Return to start screen
  • ๐Ÿ“š Legislation: View legal legislation
  • โ„น๏ธ About: App information
  • ๐ŸŒ Language: Turkish โ†” English (TR/EN)

๐Ÿ“ธ Screenshots

Main Flow Screenshots


Start Screen

Dispute Category

Agreement Status

Dispute Type

Input & Result Screenshots


Input Screen

Result Screen

Additional Calculators Screenshots


Time Calculation

SMM Calculation

๐Ÿ“ธ Screenshots Coming Soon


๐ŸŽฏ How It Works

Monetary Dispute - With Agreement:

  1. "Monetary" โ†’ "Agreement" โ†’ Select dispute type
  2. Enter agreement amount and number of parties
  3. Get calculated mediation fee + optional SMM receipt calculation

Non-Monetary or No Agreement:

  1. Select category โ†’ "No Agreement"
  2. Enter only number of parties
  3. Get fee calculation with automatic tax deductions

Additional Features:

  • Tab Bar Navigation: Always accessible home, legislation, and about sections
  • Native iOS Controls: Natural iOS transitions and gestures
  • Quick Access: Direct links to time and SMM calculators

๐Ÿ› ๏ธ Tech Stack

Core Framework

  • SwiftUI: Modern declarative UI framework
  • Combine: Reactive programming
  • iOS 26.0+: Minimum supported version

Architecture

  • MVVM Pattern: Model-View-ViewModel architecture
  • Clean Architecture: Layered architecture structure
  • Protocol-Oriented: Protocol-based design

UI & Design

  • Liquid Glass Theme: Modern glass effect design (iOS 26+)
  • Custom Components: Custom UI components
  • Theme Manager: Dynamic theme management
  • Localization Manager: Multi-language support

Data & Calculation

  • Local Storage: Lightweight data storage with UserDefaults
  • Pure Swift Calculations: Calculation engines without dependencies
  • Validation Engine: Input validation system

๐Ÿ“… Version Information

  • Current Version: 2.0.0
  • Supported Years: 2025 and 2026 mediation tariffs
  • Platform: iOS 26.0+
  • Languages: Turkish (TR) and English (EN)
  • Last Update: January 2026
  • Based on: 2025 and 2026 official mediation fee tariffs

๐Ÿงช Development Setup

Requirements

  • macOS 14.0+ (Sonoma or later)
  • Xcode 16.0+ (with iOS 26.0 SDK)
  • iOS 26.0+ supported simulator or physical device
  • Git

Installation Steps

# Clone the repository
git clone https://github.com/ozcotech/Denklem-SwiftUI.git
cd Denklem-SwiftUI

# Open with Xcode
open Denklem.xcodeproj

# Or from Xcode:
# File โ†’ Open โ†’ Select Denklem.xcodeproj

Running

  1. Open project in Xcode
  2. Select Denklem as target
  3. Choose simulator or physical device (iOS 26.0+)
  4. Run with Command + R

Build & Test

# Run test suite
Command + U (in Xcode)

# Or from terminal:
xcodebuild test -scheme Denklem -destination 'platform=iOS Simulator,name=iPhone 16 Pro'

๐Ÿ“‚ Project Structure

Denklem/
โ”œโ”€โ”€ App/
โ”‚   โ””โ”€โ”€ DenklemApp.swift          # Application entry point
โ”‚
โ”œโ”€โ”€ Models/
โ”‚   โ”œโ”€โ”€ Domain/                   # Business logic models
โ”‚   โ”œโ”€โ”€ Data/                     # Tariff data structures
โ”‚   โ””โ”€โ”€ Calculation/              # Calculation engines
โ”‚
โ”œโ”€โ”€ Views/
โ”‚   โ”œโ”€โ”€ Screens/                  # Screen views and ViewModels
โ”‚   โ”‚   โ”œโ”€โ”€ StartScreen/
โ”‚   โ”‚   โ”œโ”€โ”€ DisputeCategory/
โ”‚   โ”‚   โ”œโ”€โ”€ AgreementStatus/
โ”‚   โ”‚   โ”œโ”€โ”€ DisputeType/
โ”‚   โ”‚   โ”œโ”€โ”€ Input/
โ”‚   โ”‚   โ”œโ”€โ”€ TimeCalculation/
โ”‚   โ”‚   โ”œโ”€โ”€ SMMCalculation/
โ”‚   โ”‚   โ”œโ”€โ”€ About/
โ”‚   โ”‚   โ””โ”€โ”€ Legislation/
โ”‚   โ”œโ”€โ”€ Components/               # Reusable components
โ”‚   โ””โ”€โ”€ Modifiers/                # SwiftUI view modifiers
โ”‚
โ”œโ”€โ”€ Theme/                        # Theme system
โ”‚   โ”œโ”€โ”€ ThemeProtocol.swift
โ”‚   โ”œโ”€โ”€ LightTheme.swift
โ”‚   โ”œโ”€โ”€ DarkTheme.swift
โ”‚   โ””โ”€โ”€ LiquidGlass/              # Liquid Glass styles
โ”‚
โ”œโ”€โ”€ Localization/                 # Multi-language support
โ”‚   โ”œโ”€โ”€ LocalizationKeys.swift
โ”‚   โ”œโ”€โ”€ LocalizationHelper.swift
โ”‚   โ””โ”€โ”€ Localizable.xcstrings
โ”‚
โ”œโ”€โ”€ Constants/                    # Constants
โ”‚   โ”œโ”€โ”€ AppConstants.swift
โ”‚   โ”œโ”€โ”€ TariffConstants.swift
โ”‚   โ”œโ”€โ”€ DisputeConstants.swift
โ”‚   โ””โ”€โ”€ ValidationConstants.swift
โ”‚
โ”œโ”€โ”€ Managers/                     # Managers
โ”‚   โ”œโ”€โ”€ ThemeManager.swift
โ”‚   โ””โ”€โ”€ LocaleManager.swift
โ”‚
โ”œโ”€โ”€ Extensions/                   # Extensions
โ”‚   โ”œโ”€โ”€ Foundation/
โ”‚   โ”œโ”€โ”€ SwiftUI/
โ”‚   โ””โ”€โ”€ UIKit/
โ”‚
โ””โ”€โ”€ Resources/                    # Resources
    โ””โ”€โ”€ Assets.xcassets/

๐ŸŽจ Design Features

Liquid Glass Effect (iOS 26.0+)

// Using Liquid Glass
GlassEffectContainer(spacing: theme.spacingM) {
    // Content
}
.liquidGlassEffect()
.interactive()  // Touch illumination

Theme System

// Using theme
@Environment(\.theme) var theme

Text("Title")
    .font(theme.title)
    .foregroundStyle(theme.textPrimary)
    .padding(theme.spacingM)

Localization

// Multi-language support
Text(LocalizationKeys.Home.welcome.localized)

// Dynamic language switching
LocaleManager.shared.setLanguage(.english)

๐Ÿš€ Upcoming Features (v2.1+)

Planned Features

  • ๐Ÿข Attorney Fee Calculation: Power of attorney fee calculation in mediation process
  • ๐Ÿ  Rental Disputes: Special calculations for eviction and rent determination
  • ๐Ÿ‘จโ€โš–๏ธ Reinstatement Calculations: Calculation module specific to reinstatement cases
  • ๐Ÿ“Š Comparison Mode: Side-by-side comparison of different scenarios
  • ๐Ÿ“ค Advanced Export: PDF reports and email sharing
  • ๐Ÿ”” Tariff Notifications: Push notifications for new tariff updates

Technical Improvements

  • โšก Performance Improvements: Faster calculations and animations
  • ๐Ÿงช Enhanced Test Coverage: Target 95%+ test coverage
  • ๐ŸŒ Additional Languages: More language support beyond English

๐Ÿ“– Documentation

See the Documentation/ folder for detailed documentation:


๐Ÿค Contributing

This project is currently managed by a single developer. Please contact for suggestions and feedback.


๐Ÿ‘ค Author

ร–zkan Cรถmert


๐Ÿ“„ License

This project is licensed under the MIT License.


๐Ÿ™ Acknowledgments

  • Apple - For SwiftUI framework and development tools
  • iOS development community - For open source contributions
  • GitHub - For hosting and collaboration platform

๐Ÿ”„ Version History

v2.0.0 (January 2026) - SwiftUI Native Rewrite

  • โœจ Completely rewritten with SwiftUI
  • ๐ŸŽฏ iOS 26.0+ minimum requirement
  • ๐Ÿ“… 2025 and 2026 tariff support
  • ๐ŸŽจ Liquid Glass modern design system
  • ๐ŸŒ Turkish and English language support
  • โšก Native performance optimizations
  • ๐ŸŒ“ Light/Dark mode automatic theme
  • ๐Ÿ“ฑ Tab bar navigation system
  • ๐Ÿงฎ Enhanced calculation engines

v1.x (2025) - React Native Version

  • ๐Ÿ“ฑ First version with React Native
  • ๐Ÿ“… 2025 tariff support
  • ๐Ÿ‡น๐Ÿ‡ท Turkish only
  • ๐Ÿ“Š Basic calculation features

Made with โค๏ธ in Tรผrkiye

Developed to simplify mediation processes

About

DENKLEM: A modern SwiftUI iOS application for calculating mediation fees in legal disputes according to Turkish mediation fee tariffs (2025/2026). Native Swift implementation providing fast, offline calculations for mediators and legal professionals.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages