objective c - setBounds in Swift -


i'm trying convert objective-c app swift i'm stuck setbounds. original code looks this:

- (void)setbounds:(cgrect)bounds {     [super setbounds:bounds];      // code } 

what equivalent in swift? i've tried looking in documents , google can't seem figure out.

you need override bounds:

override var bounds: cgrect{    didset{           //your code here      } } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -