{"id":1206,"date":"2016-06-20T11:07:48","date_gmt":"2016-06-20T04:07:48","guid":{"rendered":"http:\/\/www.booboohome.com\/blogs\/?p=1206"},"modified":"2025-08-10T15:59:46","modified_gmt":"2025-08-10T08:59:46","slug":"ios-tutorial-begin-with-swift-day-7","status":"publish","type":"post","link":"https:\/\/www.booboohome.com\/blogs\/2016\/06\/ios-tutorial-begin-with-swift-day-7\/","title":{"rendered":"iOS Tutorial &#8211; Begin with swift ( day 7 ) &#8211; Class \u0e41\u0e25\u0e30 Structure"},"content":{"rendered":"<p><strong>\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01\u0e01\u0e31\u0e1a Class \u0e41\u0e25\u0e30 Structure<\/strong><\/p>\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 Class<\/strong><\/p>\n<p><a href=\"https:\/\/www.booboohome.com\/blogs\/wp-content\/uploads\/2016\/06\/class.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1208 alignleft\" src=\"https:\/\/www.booboohome.com\/blogs\/wp-content\/uploads\/2016\/06\/class.png\" alt=\"class\" width=\"327\" height=\"146\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e43\u0e0a\u0e49 Class \u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e43\u0e0a\u0e49 keyword &#8220;class&#8221; \u0e15\u0e32\u0e21\u0e14\u0e49\u0e27\u0e22\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07\u0e04\u0e25\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 \u0e41\u0e25\u0e30\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07\u0e04\u0e25\u0e32\u0e2a\u0e08\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e20\u0e32\u0e22\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 {}<\/p>\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 Structure<\/strong><\/p>\n<p><a href=\"https:\/\/www.booboohome.com\/blogs\/wp-content\/uploads\/2016\/06\/struct.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1209 alignleft\" src=\"https:\/\/www.booboohome.com\/blogs\/wp-content\/uploads\/2016\/06\/struct.png\" alt=\"struct\" width=\"295\" height=\"119\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e43\u0e0a\u0e49 Structure \u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e43\u0e0a\u0e49\u00a0 keyword &#8220;struct&#8221; \u0e15\u0e32\u0e21\u0e14\u0e49\u0e27\u0e22\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07 Structure \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 \u0e41\u0e25\u0e30\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07 structure \u0e08\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e20\u0e32\u0e22\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 {}<\/p>\n<p><strong>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Class \u0e41\u0e25\u0e30 Structure<\/strong><\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">struct GeoLocation{\r\n    var lat = 88.25\r\n    var long = 91.5\r\n}\r\n\r\nstruct Size{\r\n    var width = 1280\r\n    var height = 960\r\n}\r\n\r\nclass SharedImage{\r\n    var location = GeoLocation()\r\n    var size = Size()\r\n    var type = \"png\"\r\n    var name = \"\"\r\n}<\/pre>\n<p>\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e02\u0e49\u0e32\u0e07\u0e15\u0e49\u0e19<\/p>\n<ul>\n<li>structure Geolocation \u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e19\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e42\u0e14\u0e22\u0e21\u0e35\u0e04\u0e38\u0e13\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 2 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e14\u0e49\u0e27\u0e22\u0e01\u0e31\u0e19\u0e04\u0e37\u0e2d\u0e04\u0e48\u0e32 latitude \u0e41\u0e25\u0e30 longitude<\/li>\n<li>structure Size \u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e19\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e19\u0e32\u0e14\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e42\u0e14\u0e22\u0e21\u0e35\u0e04\u0e38\u0e13\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 2 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e14\u0e49\u0e27\u0e22\u0e01\u0e31\u0e19\u0e04\u0e37\u0e2d width \u0e41\u0e25\u0e30 height<\/li>\n<li>class SharedImage \u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e19\u0e34\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e17\u0e35\u0e48\u0e17\u0e33\u0e01\u0e32\u0e23\u0e41\u0e0a\u0e23\u0e4c\u0e44\u0e27\u0e49\u0e42\u0e14\u0e22\u0e08\u0e30\u0e21\u0e35\u0e04\u0e38\u0e13\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 4 \u0e2d\u0e22\u0e48\u0e32\u0e07\u0e14\u0e49\u0e27\u0e22\u0e01\u0e31\u0e19 \u0e04\u0e37\u0e2d \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e, \u0e02\u0e19\u0e32\u0e14\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e, \u0e0a\u0e19\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e \u0e41\u0e25\u0e30 \u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e<\/li>\n<\/ul>\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 instance \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e08\u0e23\u0e34\u0e07 \u0e02\u0e2d\u0e07 Structure \u0e41\u0e25\u0e30 Class<\/strong><\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">var geoLoc = GeoLocation()\r\nvar image = SharedImage()<\/pre>\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e04\u0e38\u0e13\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e15\u0e48\u0e25\u0e30\u0e15\u0e31\u0e27<\/strong><\/p>\n<p>\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e04\u0e38\u0e13\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e02\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 &#8220;.&#8221; \u0e41\u0e25\u0e30\u0e15\u0e32\u0e21\u0e14\u0e49\u0e27\u0e22\u0e04\u0e38\u0e13\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e31\u0e49\u0e19\u0e46<\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">print(\"Image location is: (\\(image.location.lat), \\(image.location.long) )\")     \/\/ result: Image location is: (88.25, 91.5 )\r\nprint(\"Image type is \\(image.type)\")    \/\/ result: Image type is png<\/pre>\n<p><strong>Structure \u0e19\u0e31\u0e49\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a value type<\/strong><\/p>\n<p>\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e41\u0e1a\u0e1a value-type \u0e04\u0e37\u0e2d \u0e17\u0e38\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07\u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32 structure \u0e43\u0e2b\u0e49\u0e01\u0e31\u0e1a \u0e04\u0e48\u0e32\u0e04\u0e07\u0e17\u0e35\u0e48, \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 \u0e2b\u0e23\u0e37\u0e2d\u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e19\u0e15\u0e48\u0e32\u0e07\u0e46 \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e16\u0e39\u0e01\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e41\u0e25\u0e30\u0e08\u0e30\u0e2d\u0e34\u0e2a\u0e23\u0e30\u0e08\u0e32\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e14\u0e34\u0e21 \u0e43\u0e19 swift \u0e19\u0e31\u0e49\u0e19 integers, floating-point numbers, Booleans, strings, arrays and dictionaries \u0e19\u0e31\u0e49\u0e19\u0e15\u0e48\u0e32\u0e07\u0e16\u0e39\u0e01\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e21\u0e32\u0e08\u0e32\u0e01 structure \u0e41\u0e25\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17 value type \u0e2a\u0e48\u0e27\u0e19 enumeration \u0e01\u0e47\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17 value type \u0e40\u0e0a\u0e48\u0e19\u0e01\u0e31\u0e19<\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">var newSize = image.size\r\nnewSize.width = 640\r\nnewSize.height = 480\r\n\r\nprint(\"Original Size(\\(image.size.width),\\(image.size.height)) to new Size(\\(newSize.width), \\(newSize.height))\")<\/pre>\n<p>\u0e1c\u0e25\u0e01\u0e47\u0e04\u0e37\u0e2d<\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">Original Size(1280,960) to new Size(640, 480)<\/pre>\n<p>\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e40\u0e23\u0e32\u0e21\u0e35\u0e01\u0e32\u0e23\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e02\u0e19\u0e32\u0e14\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e30\u0e17\u0e33\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e02\u0e19\u0e32\u0e14\u0e43\u0e2b\u0e21\u0e48 \u0e21\u0e32\u0e43\u0e2a\u0e48\u0e44\u0e27\u0e49\u0e43\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e2b\u0e21\u0e48\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 newSize \u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e40\u0e23\u0e32\u0e08\u0e36\u0e07\u0e17\u0e33\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e43\u0e2b\u0e49\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e2b\u0e21\u0e48\u0e19\u0e35\u0e49\u0e17\u0e31\u0e49\u0e07\u0e04\u0e27\u0e32\u0e21\u0e01\u0e27\u0e49\u0e32\u0e07 \u0e41\u0e25\u0e30 \u0e04\u0e27\u0e32\u0e21\u0e22\u0e32\u0e27 \u0e41\u0e25\u0e30\u0e40\u0e19\u0e37\u0e48\u0e2d\u0e07\u0e08\u0e32\u0e01\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e40\u0e23\u0e32\u0e17\u0e33\u0e01\u0e32\u0e23\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e21\u0e32\u0e41\u0e25\u0e49\u0e27 \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e01\u0e48\u0e32\u0e41\u0e25\u0e30\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e2b\u0e21\u0e48\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e34\u0e2a\u0e23\u0e30\u0e08\u0e32\u0e01\u0e01\u0e31\u0e19 \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e32\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e48\u0e32\u0e2d\u0e2d\u0e01\u0e21\u0e32 \u0e08\u0e30\u0e17\u0e33\u0e43\u0e2b\u0e49 newSize \u0e41\u0e25\u0e30 imageSize \u0e21\u0e35\u0e02\u0e19\u0e32\u0e14\u0e44\u0e21\u0e48\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e19<\/p>\n<p><strong>Class \u0e19\u0e31\u0e49\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17 reference type<\/strong><\/p>\n<p>\u0e15\u0e48\u0e32\u0e07\u0e08\u0e32\u0e01 structure \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a class \u0e19\u0e31\u0e49\u0e19\u0e40\u0e27\u0e25\u0e32\u0e21\u0e35\u0e01\u0e32\u0e23\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e2b\u0e21\u0e48\u0e08\u0e30\u0e21\u0e35\u0e01\u0e32\u0e23\u0e0a\u0e35\u0e49\u0e01\u0e25\u0e31\u0e1a\u0e44\u0e1b\u0e22\u0e31\u0e07 instance \u0e15\u0e31\u0e27\u0e40\u0e14\u0e34\u0e21\u0e44\u0e21\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e2b\u0e21\u0e48<\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">var newImage = image\r\nnewImage.type = \"jpg\"\r\nprint(\"Original image type: \\(image.type)\")<\/pre>\n<p>\u0e1c\u0e25\u0e01\u0e47\u0e04\u0e37\u0e2d<\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">Original image type: jpg<\/pre>\n<p>\u0e08\u0e32\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e40\u0e23\u0e32\u0e21\u0e35\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e2b\u0e21\u0e48\u0e0a\u0e37\u0e48\u0e2d newImage \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e08\u0e30\u0e21\u0e32\u0e23\u0e31\u0e1a instance\u00a0 image \u0e41\u0e15\u0e48\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e0a\u0e19\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e43\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e2b\u0e21\u0e48\u0e04\u0e37\u0e2d newImage \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e0a\u0e19\u0e34\u0e14\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e20\u0e32\u0e1e\u0e43\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e40\u0e01\u0e48\u0e32\u0e04\u0e37\u0e2d image\u00a0 \u0e08\u0e30\u0e16\u0e39\u0e01\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e41\u0e1b\u0e25\u0e07\u0e44\u0e1b\u0e14\u0e49\u0e27\u0e22<\/p>\n<p><strong>\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e23\u0e35\u0e22\u0e1a\u0e40\u0e17\u0e35\u0e22\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 Class<\/strong><\/p>\n<p>\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e23\u0e35\u0e22\u0e1a\u0e40\u0e17\u0e35\u0e22\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e02\u0e2d\u0e07 Class \u0e27\u0e48\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01 instance \u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 === \u0e2b\u0e23\u0e37\u0e2d !== \u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e1b\u0e23\u0e35\u0e22\u0e1a\u0e40\u0e17\u0e35\u0e22\u0e1a<\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">if(image === newImage){\r\n    print(\"Same instance\")\r\n}<\/pre>\n<p>\u0e1c\u0e25\u0e01\u0e47\u0e04\u0e37\u0e2d<\/p>\n<pre class=\"prettyprint lang-swift\" data-start-line=\"1\" data-visibility=\"visible\" data-highlight=\"\" data-caption=\"\">Same instance<\/pre>\n<p>\u0e2d\u0e48\u0e32\u0e19\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/Swift\/Conceptual\/Swift_Programming_Language\/ClassesAndStructures.html#\/\/apple_ref\/doc\/uid\/TP40014097-CH13-ID82\">\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48<\/a><\/p>\n<p>\u0e27\u0e31\u0e19\u0e15\u0e48\u0e2d\u0e44\u0e1b <a href=\"https:\/\/www.booboohome.com\/blogs\/2016\/06\/ios-tutorial-begin-with-swift-day-8\/\">Properties<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01\u0e01\u0e31\u0e1a Class \u0e41\u0e25\u0e30 Structure \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 Class &nbsp; &nbsp; &nbsp; &nbsp; \u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e43\u0e0a\u0e49 Class \u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e43\u0e0a\u0e49 keyword &#8220;class&#8221; \u0e15\u0e32\u0e21\u0e14\u0e49\u0e27\u0e22\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07\u0e04\u0e25\u0e32\u0e2a\u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 \u0e41\u0e25\u0e30\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07\u0e04\u0e25\u0e32\u0e2a\u0e08\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e20\u0e32\u0e22\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 {} \u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 Structure &nbsp; &nbsp; &nbsp; \u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e43\u0e0a\u0e49 Structure \u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e43\u0e0a\u0e49\u00a0 keyword &#8220;struct&#8221; \u0e15\u0e32\u0e21\u0e14\u0e49\u0e27\u0e22\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07 Structure \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28 \u0e41\u0e25\u0e30\u0e23\u0e32\u0e22\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14\u0e02\u0e2d\u0e07 structure \u0e08\u0e30\u0e2d\u0e22\u0e39\u0e48\u0e20\u0e32\u0e22\u0e43\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e21\u0e32\u0e22 {} \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 Class \u0e41\u0e25\u0e30 Structure struct GeoLocation{ var lat = 88.25 var long = 91.5 } struct Size{ var width = <a href=\"https:\/\/www.booboohome.com\/blogs\/2016\/06\/ios-tutorial-begin-with-swift-day-7\/\" rel=\"nofollow\"><span class=\"sr-only\">Read more about iOS Tutorial &#8211; Begin with swift ( day 7 ) &#8211; Class \u0e41\u0e25\u0e30 Structure<\/span>[&hellip;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":1126,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[81,82,68,69,71,73],"class_list":["post-1206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ios-tutorial","tag-class","tag-structure","tag-swift","tag-swift-","tag--swift-","tag--swift"],"_links":{"self":[{"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/posts\/1206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/comments?post=1206"}],"version-history":[{"count":10,"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/posts\/1206\/revisions"}],"predecessor-version":[{"id":3575,"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/posts\/1206\/revisions\/3575"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/media\/1126"}],"wp:attachment":[{"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/media?parent=1206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/categories?post=1206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.booboohome.com\/blogs\/wp-json\/wp\/v2\/tags?post=1206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}