This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LogManager.swift | |
// | |
// Created by Rutger Bresjer on 30/11/2016. | |
// Copyright © 2016 Woost. All rights reserved. | |
// | |
import Foundation | |
import RxSwift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// DateManager.swift | |
// | |
// Created by Rutger Bresjer on 30/12/2016. | |
// Copyright © 2016 Woost. All rights reserved. | |
// | |
import Foundation | |
class DateManager { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////// | |
// - Non-functional | |
/////////////////////////////////////// | |
var buffer: [Match] = [] | |
var bufferDate: Int = 0 | |
var sections: [FeedSection] = [] | |
for match in matches { | |
if bufferDate != match.createdAt.dateInt { | |
if let firstMatch = buffer.first { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
struct FaqCategory: Equatable { | |
let id: Int | |
let name: String | |
let items: [FaqItem] | |
} | |
func ==(lhs: FaqCategory, rhs: FaqCategory) -> Bool { | |
return lhs.id == rhs.id | |
} |
NewerOlder