Fix Swift5 warnings
This commit is contained in:
@@ -121,7 +121,7 @@ internal class WemoOperation : Operation
|
||||
var baseURL: URL
|
||||
var session: URLSession
|
||||
|
||||
internal(set) var error: Error?
|
||||
fileprivate(set) var error: Error?
|
||||
|
||||
init(baseURL: URL, session: URLSession)
|
||||
{
|
||||
@@ -150,7 +150,7 @@ internal class ConnectOperation : WemoOperation
|
||||
|
||||
internal class FetchDevicesOperation : WemoOperation
|
||||
{
|
||||
internal(set) var devices: [WemoDevice] = []
|
||||
private(set) var devices: [WemoDevice] = []
|
||||
|
||||
override func main()
|
||||
{
|
||||
|
||||
@@ -61,17 +61,14 @@ class WemoDevice: Hashable
|
||||
}
|
||||
}
|
||||
|
||||
var hashValue: Int
|
||||
func hash(into hasher: inout Hasher)
|
||||
{
|
||||
var hash: Int = 0x0
|
||||
hash ^= self.name.hash
|
||||
hash ^= self.host.hash
|
||||
hash ^= self.model.hash
|
||||
hash ^= self.state.hashValue
|
||||
hash ^= self.type.hashValue
|
||||
hash ^= self.serial.hashValue
|
||||
|
||||
return hash
|
||||
hasher.combine(self.name)
|
||||
hasher.combine(self.host)
|
||||
hasher.combine(self.model)
|
||||
hasher.combine(self.state)
|
||||
hasher.combine(self.type)
|
||||
hasher.combine(self.serial)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -99,8 +99,9 @@
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "ios-marketing",
|
||||
"size" : "1024x1024",
|
||||
"idiom" : "ios-marketing",
|
||||
"filename" : "Icon-1024.png",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 276 KiB |
@@ -1,8 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="15C50" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||
<device id="ipad12_9rounded" orientation="portrait">
|
||||
<adaptation id="fullscreen"/>
|
||||
</device>
|
||||
<dependencies>
|
||||
<deployment identifier="iOS"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
@@ -14,9 +18,9 @@
|
||||
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
|
||||
Reference in New Issue
Block a user