diff --git a/TUM Campus App/AvatarNavigationBar.swift b/TUM Campus App/AvatarNavigationBar.swift index 6d60d242..d650b43e 100644 --- a/TUM Campus App/AvatarNavigationBar.swift +++ b/TUM Campus App/AvatarNavigationBar.swift @@ -14,7 +14,7 @@ import XMLCoder fileprivate let sessionManager = Session.defaultSession fileprivate let cacheKey = "avatar" -protocol ProfileImageSettable: class { +protocol ProfileImageSettable: AnyObject { var profileImage: UIImage? { get set } } diff --git a/TUM Campus App/Entity/DecoderProtocol.swift b/TUM Campus App/Entity/DecoderProtocol.swift index deaad199..d2ab5678 100644 --- a/TUM Campus App/Entity/DecoderProtocol.swift +++ b/TUM Campus App/Entity/DecoderProtocol.swift @@ -10,7 +10,7 @@ import Foundation import XMLCoder import Alamofire -protocol DecoderProtocol: class, DataDecoder { +protocol DecoderProtocol: AnyObject, DataDecoder { associatedtype DateDecodingStrategy: DecodingStrategyProtocol func decode(_ type: T.Type, from data: Data) throws -> T where T : Decodable var userInfo: [CodingUserInfoKey : Any] { get set } diff --git a/TUM Campus App/Extensions/Extensions.swift b/TUM Campus App/Extensions/Extensions.swift index 13ffc3d3..85bea9ba 100644 --- a/TUM Campus App/Extensions/Extensions.swift +++ b/TUM Campus App/Extensions/Extensions.swift @@ -121,7 +121,7 @@ extension Session { } -protocol SupportsBackgroundLabel: class { +protocol SupportsBackgroundLabel: AnyObject { var backgroundView: UIView? { get set } }