This file contains hidden or 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
def age | |
now = Time.now.utc.to_date | |
gap = (now.month > dob.month || | |
(now.month == dob.month && now.day >= dob.day)) ? 0 : 1 | |
now.year - dob.year - gap | |
end |
This file contains hidden or 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 SwiftUI | |
protocol TabSelectable { | |
associatedtype Tab | |
func shouldSelect(_ tab: Tab) -> Bool | |
} | |
@propertyWrapper | |
struct TabSelection<Value: Hashable> { | |